// funkcja do zatrzymania gry
    public static void PauseGame() // pauzuj gre
    {
        PauseWindow.ShowStatic();
        // okno pauzy wyswietla sie statycznie

        Time.timeScale = 0f;
        // modyfikator do naszego czasu
        // jesli wynosi 0 to gra sie wstrzyma
    }
Exemplo n.º 2
0
 public static void PauseGame()
 {
     PauseWindow.ShowStatic();
     foreach (AudioSource audio in FindObjectsOfType <AudioSource>())
     {
         audio.Pause();
     }
     SoundManager.PlaySound(SoundManager.Sound.Pause);
     Time.timeScale = 0f;
 }
Exemplo n.º 3
0
 public static void PauseGame()
 {
     PauseWindow.ShowStatic();
     Time.timeScale = 0f;
 }
Exemplo n.º 4
0
 public static void PauseGame()
 {
     PauseWindow.ShowStatic();
     //"Stop" the time
     Time.timeScale = 0f;
 }
Exemplo n.º 5
0
 public static void PauseGameStatic()
 {
     sharedInstance.isPaused = true;
     PauseWindow.ShowStatic();
     Time.timeScale = 0f;
 }