public void Resume() { DoGameStopped(false); isPaused = false; pauseButtonAnimPlayer.SetFrame(pauseButtonAnimPlayer.GetFrameCount()); pauseButtonAnimPlayer.Playback(); pauseMenuAnimPlayer.SetFrame(pauseMenuAnimPlayer.GetFrameCount()); pauseMenuAnimPlayer.Playback(); }
// Отключение меню настроек 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; }