示例#1
0
    public void Resume()
    {
        DoGameStopped(false);

        isPaused = false;

        pauseButtonAnimPlayer.SetFrame(pauseButtonAnimPlayer.GetFrameCount());
        pauseButtonAnimPlayer.Playback();

        pauseMenuAnimPlayer.SetFrame(pauseMenuAnimPlayer.GetFrameCount());
        pauseMenuAnimPlayer.Playback();
    }
示例#2
0
    // Отключение меню настроек
    public void DisableSettingsMenu()
    {
        settingsButtonAnimPlayer.SetFrame(settingsButtonAnimPlayer.GetFrameCount());
        settingsButtonAnimPlayer.Playback();

        playButtonAnimPlayer.SetFrame(playButtonAnimPlayer.GetFrameCount());
        playButtonAnimPlayer.Playback();

        settingsMenuAnimPlayer.SetFrame(settingsMenuAnimPlayer.GetFrameCount());
        settingsMenuAnimPlayer.Playback();

        StartCoroutine(BackgroundAreaSwitch(false, 0f));

        inSettings = false;
    }