mirror of
https://github.com/Ratstail91/Keep-It-Alive.git
synced 2025-11-29 02:24:27 +11:00
Working on it
This commit is contained in:
13
Assets/Scripts/LevelController.cs
Normal file
13
Assets/Scripts/LevelController.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user