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

@@ -33,6 +33,14 @@ public class Fire : MonoBehaviour {
HandleAnimation();
}
void OnTriggerStay2D() {
if (GamePad.GetState().Pressed(CButton.Y) && levelController.globalWood > 0) {
levelController.globalWood -= 1;
levelController.globalLightLevel += 0.2f;
levelController.globalLightLevel = Mathf.Clamp(levelController.globalLightLevel, 0f, 1f);
}
}
void HandleAnimation() {
animator.SetInteger("size", size);
}