Пример #1
0
    private void OnDeath()
    {
        _winUI.enabled = true;
        _winUI.OnEndGame(false);
        _playerManager.LevelIndex = 0;

        Time.timeScale = 0.2f;
    }
Пример #2
0
 private void OnDeath()
 {
     _uiGameOver.OnEndGame(true);
     Time.timeScale         = 0.2f;
     CharacterRendr.enabled = false;
 }