void OnTriggerEnter(Collider other)
 {
     this.other = other.gameObject;
     if (Condition())
     {
         interactable.Activate();
     }
 }
Beispiel #2
0
 void OnTriggerEnter(Collider other)
 {
     this.other = other.gameObject;
     if (Condition())
     {
         interactable.directionOfInteraction = PlayerController.instance.transform.forward;
         interactable.centerOfInteraction    = PlayerController.instance.transform.position;
         interactable.Activate();
     }
 }