Esempio n. 1
0
    private void OnTriggerEnter(Collider other)
    {
        IInteractableObject interactable = other.GetComponent <IInteractableObject>();

        interactable.Activate();

        Debug.Log(interactable.gameObject.name);
    }
Esempio n. 2
0
    private void OnTriggerExit(Collider other)
    {
        IInteractableObject interactable = other.GetComponent <IInteractableObject>();

        interactable.Activate();
    }