private void TickUntilQuit() { if (AutoQuit) { DelayAction skyDelayAnimation = ActionAnimator.delayTo(DisplayTime, ShowOut); skyDelayAnimation.Play(); } }
public void ToMenuScreen(){ DelayAction delay1 = new DelayAction (GameController.GetInstance ().GetGameOverPanel().DisplayTime,()=>{ GameController.GetInstance ().GetPlayPanel().ShowOut (); GameController.GetInstance ().GetGameOverPanel().ShowOut (); },()=>{ GameController.GetInstance ().GetMainPanel().ShowIn (); }); delay1.Play (); }
public void ToMenuScreen() { DelayAction delay1 = new DelayAction(GameController.GetInstance().GetGameOverPanel().DisplayTime, () => { GameController.GetInstance().GetPlayPanel().ShowOut(); GameController.GetInstance().GetGameOverPanel().ShowOut(); }, () => { GameController.GetInstance().GetMainPanel().ShowIn(); }); delay1.Play(); }
public void OnRestart(){ DelayAction delay1 = new DelayAction (GameController.GetInstance ().GetGameOverPanel().DisplayTime,()=>{ GameController.GetInstance ().GetGameOverPanel().ShowOut (); },()=>{ GameController.GetInstance ().GetPlayGameInstance().OnResume (); GameController.GetInstance ().GetPlayGameInstance().OnReStart (); GameController.GetInstance ().GetPlayPanel ().Start (); }); delay1.Play (); }
public void OnRestart() { DelayAction delay1 = new DelayAction(GameController.GetInstance().GetGameOverPanel().DisplayTime, () => { GameController.GetInstance().GetGameOverPanel().ShowOut(); }, () => { GameController.GetInstance().GetPlayGameInstance().OnResume(); GameController.GetInstance().GetPlayGameInstance().OnReStart(); GameController.GetInstance().GetPlayPanel().Start(); }); delay1.Play(); }
private void animatorIn() { InAction.OnStartMethod(); if (animator != null) { animator.speed = 1f / AppearTime; animator.SetInteger("state", (int)UIDisplayState.Showining); DelayAction delay = new DelayAction(AppearTime, null, () => { InAction.OnCompleteMethod(); animator.SetInteger("state", (int)UIDisplayState.Normal); }); delay.Play(); // StartCoroutine (Open ()); } }
private void animatorOut() { OutAction.OnStartMethod(); if (animator != null) { animator.speed = 1f / DisappearTime; animator.SetInteger("state", (int)UIDisplayState.Showouting); DelayAction delay = new DelayAction(AppearTime, null, () => { animator.SetInteger("state", (int)UIDisplayState.Disable); OutAction.OnCompleteMethod(); }); delay.Play(); // StartCoroutine (Closed ()); } }
public void SlowAction() { count.Play(); GameController.GetInstance().GetPlayGameInstance().OnSkill_SlownDown(); }