void OnTriggerEnter(Collider other)
 {
     this.other = other.gameObject;
     if (Condition())
     {
         interactable.Activate();
     }
 }
Example #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();
     }
 }