NNMDETGroupProject/Assets/OccaSoftware/Enflame/Scripts/OscillateLightBrightness.cs
Nicklas Bourelius 02c72ae340 Put in totems and fire and wind
Everything working, still trying to scale things and move things to proper locations.
2024-02-26 20:59:23 +01:00

25 lines
539 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class OscillateLightBrightness : MonoBehaviour
{
Light lightComponent;
[SerializeField, Range(0f, 10f)]
float lower;
[SerializeField, Range(0f, 10f)]
float upper;
// Start is called before the first frame update
void Start()
{
lightComponent = GetComponent<Light>();
}
// Update is called once per frame
void Update()
{
lightComponent.intensity = Random.Range(lower, upper);
}
}