Esempio n. 1
0
 private void PairWithInteractor(WandController interactor)
 {
     if (currentInteractor != null)
     {
         Debug.LogError("Cannot pair with " + interactor.gameObject + " because I already am paired with interactor " + currentInteractor.gameObject);
     }
     else
     {
         if (interactor.PairWithInteractable(this))
         {
             currentInteractor = interactor;
         }
         else
         {
             Debug.LogError(interactor.gameObject + " declined to pair with me, and we don't really handle that case yet.");
         }
     }
 }