Ejemplo n.º 1
0
        IEnumerator <WaitForSeconds> SleepSpeedChangeDelay()
        {
            yield return(new WaitForSeconds(5));

            GameClock.ChangeSpeed(Player.anim.GetBool("Sleeping") == true ? 2 : 1);
            yield return(new WaitForSeconds(5));

            GameClock.ChangeSpeed(Player.anim.GetBool("Sleeping") == true ? 5 : 1);
            yield return(new WaitForSeconds(5));

            GameClock.ChangeSpeed(Player.anim.GetBool("Sleeping") == true ? 10 : 1);
        }
Ejemplo n.º 2
0
        public override void Use()
        {
            CurrentAction.ApplyStatsOnUse();

            if (shouldCancel && !PlayerBuff.HasBuff <DeepSleep>())
            {
                FinishUsing(true);
            }
            else if (!CurrentAction.ValidateStats())
            {
                useState = ObjectUseState.Preparation;
                GameClock.ResetSpeed();
                ExitAfterDelay(false);
            }
        }