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(); } } }
public void Interact() { if (Stats.Status(Energy).CurrentAmount <= 5 || Stats.Status(Health).CurrentAmount <= 5) { return; } PlayerCommands.JumpTo(this); }
public override void Interact() { var result = TrySetCurrentAction("Cardio"); if (result) { PlayerCommands.JumpTo(this); } else { result.PrintErrorMessage(); } }
public void Interact() { SpriteControler.Instance.ChangeSortingOrder(7); PlayerCommands.JumpTo(this); }
IEnumerator DelayJumpTo() { yield return(new WaitForSeconds(1)); PlayerCommands.JumpTo(this); }