コード例 #1
0
 public void OnInspectedEnd(Interactor interactor)
 {
     currentHoveringIDs.Remove(interactor.GetInstanceID());
     // if (highlightOnHover) {
     //     UnHighlight();
     // }
     for (int i = 0; i < listeners.Count; i++)
     {
         listeners[i].OnInspectedEnd(interactor);
     }
     if (onInspectEnd != null)
     {
         onInspectEnd.Invoke(interactor);
     }
 }
コード例 #2
0
 public void OnInspectedStart(Interactor interactor)
 {
     currentHoveringIDs.Add(interactor.GetInstanceID());
     if (highlightOnHover)
     {
         SubmitForHighlight();
     }
     for (int i = 0; i < listeners.Count; i++)
     {
         listeners[i].OnInspectedStart(interactor);
     }
     if (onInspectStart != null)
     {
         onInspectStart.Invoke(interactor);
     }
 }