void Debug() { GameObject debugScreen = GameObject.Find("DebugScreen"); if (debugScreen) { DebugCanvas canvas = debugScreen.GetComponent <DebugCanvas>(); canvas.Show(0, string.Format("Grounded: {0}", grounded ? "Yes" : "No")); canvas.Show(1, string.Format("Crouched: {0}", crouched ? "Yes" : "No")); canvas.Show(2, string.Format("Health: {0}", healthController.CurrentHealth)); canvas.Show(3, string.Format("Energy: {0}", energyController.CurrentEnergy)); canvas.Show(4, string.Format("Tempo: {0}", Time.time.ToString())); canvas.Show(5, string.Format("Grid Area: {0}", gridArea ? "Yes" : "No")); canvas.Show(6, string.Format("Grabed: {0}", grabed ? "Yes" : "No")); canvas.Show(7, string.Format("Air Jump: {0}", airJump ? "Yes" : "No")); } }