mirror of
https://github.com/Ratstail91/Keep-It-Alive.git
synced 2025-11-29 10:34:27 +11:00
Mostly finished, just needs sound, polish and hosting online
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user