private void OnPlayerDeath(OnGameEventEventArgs _args) { if (_args.eventId.Equals("player.death")) { Time.timeScale = 0.0f; InGameStateMenu.ShowStateScreen(DEFEAT_TEXT); } }
private void OnPlayerWon(OnGameEventEventArgs _args) { if (_args.eventId.Equals("player.won")) { Time.timeScale = 0.0f; InGameStateMenu.ShowStateScreen(WIN_TEXT); } }