mirror of
https://github.com/nick7ass/NNMDETGroupProject.git
synced 2025-01-21 00:51:50 +01:00
02c72ae340
Everything working, still trying to scale things and move things to proper locations.
25 lines
539 B
C#
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);
|
|
}
|
|
}
|