Esempio n. 1
0
 public void DoTheThing(GameObject player)
 {
     if (immunity || player.GetComponent <PlayerUpgrades>().HasImmunity())
     {
         return;
     }
     playerMovement = player.GetComponent <PlayerMovementXZ>();
     StartCoroutine(TimeWastingConversation(timeWasted));
 }
 public void DoTheThing(GameObject player)
 {
     if (ShoppingList.Instance.ReadyToCheckout)
     {
         playerMovement = player.GetComponent <PlayerMovementXZ>();
         StartCoroutine(ShowDialog(5f));
     }
     else if (ShoppingList.Instance.ReadyToLeave)
     {
         Dialog.Instance.UpdateDialog("I've already paid!");
     }
     else
     {
         Dialog.Instance.UpdateDialog("I'm still missing a few things...");
     }
 }