Exemplo n.º 1
0
    private void OnTriggerEnter(Collider other)
    {
        INTERACTABLE temp = other.GetComponent <INTERACTABLE>();

        if (temp != null)
        {
            InteractList.Add(temp);
        }
    }
Exemplo n.º 2
0
 private void Awake()
 {
     _bed = gameObject.GetComponent <INTERACTABLE>();
 }