private void Update() { #if UNITY_EDITOR /* When testing in the editor, you can use the keyboard to control the lives manager: * C - Consume life * G - Give one * F - Fill lives * A - Add one slot (increase max) * Z - Add one slot and fill * I - Give infinite lives */ if (Input.GetKeyUp(KeyCode.C)) { OnButtonConsumePressed(); } if (Input.GetKeyUp(KeyCode.G)) { OnButtonGiveOnePressed(); } if (Input.GetKeyUp(KeyCode.F)) { OnButtonFillPressed(); } if (Input.GetKeyUp(KeyCode.A)) { OnButtonIncreaseMaxPressed(); } if (Input.GetKeyUp(KeyCode.Z)) { LivesManager.AddLifeSlots(1, true); } if (Input.GetKeyUp(KeyCode.I)) { OnButtonInfinitePressed(); } #endif }