Exemplo n.º 1
0
 public void LeaveConfigScreen(ConfigManager.LeaveConfigDelegate callback)
 {
     inputHandler = null;
     configManager.Leave(delegate
     {
         PopStateStack();
         ExecuteActions();
         if (callback != null)
         {
             callback();
         }
     });
 }
Exemplo n.º 2
0
        private IEnumerator LeaveScreen(ConfigManager.LeaveConfigDelegate callback)
        {
            this.panel = this.Panel.GetComponent <UIPanel>();
            LeanTween.value(this.Panel, new Action <float>(this.UpdateAlpha), 1f, 0f, 0.3f);
            if (this.needShowMessageWindow)
            {
                GameSystem.Instance.MainUIController.FadeIn(0.3f);
                GameSystem.Instance.SceneController.RevealFace(0.3f);
                GameSystem.Instance.ExecuteActions();
            }
            yield return(new WaitForSeconds(0.5f));

            if (callback != null)
            {
                callback();
            }
            UnityEngine.Object.Destroy(base.gameObject);
            yield break;
        }