예제 #1
0
        public void Enable(bool state = true)
        {
            ProjectManager.Instance.userInterface.EnablePauseButton();
            ChangeTextColour.Change(_startButtonText, _playButtonColorSwaps[0], _playButtonColorSwaps[1], ProjectManager.Instance);

            if (state)
            {
                BaseEnable(true);
                UserInterfaceManager.AppearAnimation(popUpMenu, () =>
                {
                    BaseEnable();
                });
            }
            else
            {
                UserInterfaceManager.DisappearAnimation(popUpMenu, () =>
                {
                    BaseEnable(false);
                    ProjectManager.Instance.LoadMainGame();
                });
            }
        }