//public void CloseClassMenu() { // FadeIn(IndexMain); // FadeOut(IndexClass); //} public void StartNewGame() { CloseMainMenu(0); if (_menuMusic != null && _menuMusic.isPlaying) { TimeManager.StartUnscaled(FadeMusic(false, 0.2f)); } TimeManager.PauseFor(_transitionLength * 0.25f, true, () => { MessageKit.post(Messages.StartNewGame); }); }
public override void SetActive(bool status) { base.SetActive(status); if (!_positioned && status) { _positioned = true; if (_delay > 0) { TimeManager.PauseFor(_delay, _unscaled, SetPosition); } else { SetPosition(); } } }
public void FadeIn() { TimeManager.PauseFor(_loadPause, true, () => { _canvasGroup.FadeTo(0, _fadeTime, EasingTypes.SinusoidalInOut, true); }); }
void Start() { TimeManager.PauseFor(_pause, true, () => { gameObject.SetActive(false); }); }