Example #1
0
 void FindContext()
 {
     if (context == null)
     {
         Transform parent = transform;
         while (parent != null)
         {
             context = parent.GetComponent <InteractorContext>();
             if (context != null)
             {
                 break;
             }
             parent = parent.parent;
         }
     }
 }
Example #2
0
 public bool CheckContext(InteractorContext context)
 {
     return(currentContexts.Contains(context));
 }
Example #3
0
 public void RemoveContext(InteractorContext context)
 {
     currentContexts.Remove(context);
 }
Example #4
0
 public void AddContext(InteractorContext context)
 {
     currentContexts.Add(context);
 }