예제 #1
0
 public void Interact()
 {
     if (MyInteractable != null)
     {
         MyInteractable.Interact();
     }
 }
 void InteractWithInteractable()
 {
     if (interactable != null && interactable.CanInteract())
     {
         interactable.Interact();
     }
 }