示例#1
0
文件: Bed.cs 项目: dhon2407/LSW-alpha
        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);
        }
示例#2
0
文件: Bed.cs 项目: dhon2407/LSW-alpha
        public override void Use()
        {
            CurrentAction.ApplyStatsOnUse();

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