Beispiel #1
0
 private void OnTriggerExit(Collider other)
 {
     if (other.gameObject.tag == "Player")
     {
         TutorialText.ChangeText("");
     }
 }
Beispiel #2
0
 private void OnTriggerStay(Collider other)
 {
     if (other.gameObject.tag == "Player")
     {
         TutorialText.ChangeText("Press E to pick up Item");
         if (Input.GetKey(KeyCode.E))
         {
             other.gameObject.GetComponent <PlayerInventoryManager>().OnPickup(this.gameObject, this.item);
         }
     }
 }
 public void OnPointerExit()
 {
     TutorialText.ChangeText("");
     InfoUpdater.EnterAction(null);
 }
 public void OnPointerEnter()
 {
     TutorialText.ChangeText("Click an Item to drop it");
     InfoUpdater.EnterAction(item);
 }