Ejemplo n.º 1
0
 public void StartHint()
 {
     if (!isActive && !(hintType == HintType.Dash && !GameInput.Hint_IsLilium))
     {
         TimeSystem.Delay(delay, t => { Show(); });
         isActive = true;
     }
 }
Ejemplo n.º 2
0
 protected internal override void RecieveData(IDataReciever reciever)
 {
     if (!wasTriggered)
     {
         wasTriggered = true;
         onStartBreaking?.Invoke();
         TimeSystem.Delay(delayTime, t => Break());
     }
 }
Ejemplo n.º 3
0
        private void ActivateRock()
        {
            if (stallTime <= 0)
            {
                StartFallRock();
            }

            animator.SetBool("IsStalling", true);
            effectsController.TriggerEffect("StallingEffect");
            TimeSystem.Delay(stallTime, (t) => StartFallRock(), true);
        }
Ejemplo n.º 4
0
        public bool DeliverLilium()
        {
            if (!IsDead)
            {
                return(false);
            }

            isDead = false;

            TimeSystem.Delay(healTime, t => Heal());

            return(true);
        }
Ejemplo n.º 5
0
        public void ShowTransition(TransitionInfo transInfo, Func <float> getProgress = null, Action onMiddle = null)
        {
            if (transInfo == null)
            {
                onMiddle?.Invoke();
                return;
            }
            TransitionPanel transition = base.ShowPanel(transInfo);

            transition?.StartTransition(getProgress);

            if (onMiddle != null)
            {
                TimeSystem.Delay(transInfo.StartDurration, f => onMiddle.Invoke());
            }
        }