public void Pause(bool state) { GamePanel.SetActive(!state); PausePanel.SetActive(state); Loco.Pause(state); if (Paused != null) { Paused(state); } }