mirror of
https://github.com/Ratstail91/Keep-It-Alive.git
synced 2025-11-29 10:34:27 +11:00
13 lines
315 B
C#
13 lines
315 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class LevelController : MonoBehaviour {
|
|
public float globalLightLevel = 1f;
|
|
public float increment = 0f;
|
|
|
|
void FixedUpdate() {
|
|
globalLightLevel += increment;
|
|
globalLightLevel = Mathf.Clamp(globalLightLevel, 0, 1);
|
|
}
|
|
} |