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