public void OpenMenu()
 {
     StartCoroutine(HelpRoutines.CallAfterTime(2f, () =>
     {
         _menu.gameObject.SetActive(true);
         SetLeaderboard();
         _music.Leaderboard();
     }));
 }
 public void CloseMenu()
 {
     _leaderboardAnim.Close();
     _backgroundAnim.Close();
     StartCoroutine(HelpRoutines.CallAfterTime(1f, () =>
     {
         _menu.gameObject.SetActive(false);
         _music.InGame();
     }));
 }
示例#3
0
 public void Kill()
 {
     onKill?.Invoke();
     StartCoroutine(HelpRoutines.CallAfterTime(1f, () => gameObject.SetActive(false)));
     Alive = false;
 }