public void OnUnPause()
    {
        Debug.Log("PauseManager.OnUnPause");
        isPaused = false;

        foreach (var pausableComponent in pausableInterfaces)
        {
            IPausable pausableInterface = (IPausable)pausableComponent;
            if (pausableInterface != null)
            {
                pausableInterface.OnUnPause();
            }
        }
    }
예제 #2
0
    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();
        }
    }