예제 #1
0
 public override void Interact()
 {
     if (breakFunctionality.isBroken)
     {
         var result = TrySetCurrentAction("Repair");
         if (result)
         {
             BeginUsing();
         }
         else
         {
             result.PrintErrorMessage();
         }
     }
     else
     {
         var result = TrySetCurrentAction("Take Shower");
         if (result)
         {
             SpriteControler.Instance.ChangeSortingOrder(1);
             SpriteControler.Instance.SetClothesState(false);
             SpriteControler.Instance.Censor.SetActive(true);
             useState = ObjectUseState.Preparation;
             PlayerCommands.JumpTo(this);
         }
         else
         {
             result.PrintErrorMessage();
         }
     }
 }
예제 #2
0
 public void Interact()
 {
     if (Stats.Status(Energy).CurrentAmount <= 5 || Stats.Status(Health).CurrentAmount <= 5)
     {
         return;
     }
     PlayerCommands.JumpTo(this);
 }
예제 #3
0
        public override void Interact()
        {
            var result = TrySetCurrentAction("Cardio");

            if (result)
            {
                PlayerCommands.JumpTo(this);
            }
            else
            {
                result.PrintErrorMessage();
            }
        }
예제 #4
0
 public void Interact()
 {
     SpriteControler.Instance.ChangeSortingOrder(7);
     PlayerCommands.JumpTo(this);
 }
예제 #5
0
        IEnumerator DelayJumpTo()
        {
            yield return(new WaitForSeconds(1));

            PlayerCommands.JumpTo(this);
        }