public void Enable(bool state = true) { if (state) { BaseEnable(); UserInterfaceManager.AppearAnimation(popUpMenu, () => { BaseEnable(); }); } else { UserInterfaceManager.DisappearAnimation(popUpMenu, () => { BaseEnable(false); }); } }
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(); }); } }