Ejemplo n.º 1
0
 public void removeInteractable(CompanionInteractable interactable)
 {
     if (currentInteractable == interactable)
     {
         //Debug.Log("Got called!");
         currentInteractable = null;
         updateTexts();
     }
 }
Ejemplo n.º 2
0
 public void setInteractable(CompanionInteractable interactable)
 {
     currentInteractable = interactable;
     updateTexts();
 }
Ejemplo n.º 3
0
 private void Start()
 {
     currentInteractable = null;
     c1.companionMovement.onStateChange.AddListener(updateTexts);
     c2.companionMovement.onStateChange.AddListener(updateTexts);
 }