コード例 #1
0
 private void UnpairWithInteractor(WandController interactor)
 {
     if (interactor != currentInteractor)
     {
         Debug.LogError("Cannot unpair from " + interactor.gameObject + " because I am not paired with it; I'm paired with " + currentInteractor.gameObject);
     }
     else
     {
         currentInteractor = null;
         if (interactor.UnpairWithInteractable(this) == false)
         {
             Debug.LogError(interactor.gameObject + " declined to unpair with me, and we don't really handle that case yet.");
         }
     }
 }