public void OnUnPause() { Debug.Log("PauseManager.OnUnPause"); isPaused = false; foreach (var pausableComponent in pausableInterfaces) { IPausable pausableInterface = (IPausable)pausableComponent; if (pausableInterface != null) { pausableInterface.OnUnPause(); } } }
public void OnUnPause() { Debug.Log("PauseManager.OnUnPause"); isPaused = false; PlayerPrefs.SetInt("GamePaused", 0); foreach (AudioSource audio in audios) { audio.enabled = true; } foreach (var pausableComponent in pausableInterfaces) { IPausable pausableInterface = (IPausable)pausableComponent; if (pausableInterface != null) { pausableInterface.OnUnPause(); } btnAudio.Play(); } }