Mostly finished, just needs sound, polish and hosting online

This commit is contained in:
2020-04-19 02:49:55 +10:00
parent a3b19da551
commit 499d572dfb
101 changed files with 14591 additions and 26 deletions

View File

@@ -1,13 +1,20 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class LevelController : MonoBehaviour {
public float globalLightLevel = 1f;
public float increment = 0f;
public int globalWood = 0;
void FixedUpdate() {
globalLightLevel += increment;
globalLightLevel = Mathf.Clamp(globalLightLevel, 0, 1);
if (globalLightLevel == 0) {
SceneManager.LoadScene("FireGoesOut");
}
}
}