Example #1
0
    private void Effect(bool fadeIn = true, Action callback = null)
    {
        if (!_isFading)
        {
            if (_effectCoroutine != null)
            {
                MonoBehaviorHelper.StopCoroutine(_effectCoroutine);
            }

            _effectCoroutine = MonoBehaviorHelper.StartCoroutine(EffectCoroutine(fadeIn, callback));
        }
    }
Example #2
0
 public void Menu()
 {
     EventSystem.GameController_MainMenu.Notify();
     MonoBehaviorHelper.StartCoroutine(Transition(Scenes.MainMenu));
 }
Example #3
0
 public void Play()
 {
     EventSystem.GameController_GameStart.Notify();
     MonoBehaviorHelper.StartCoroutine(Transition(Scenes.GamePlay));
 }