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