Exemplo n.º 1
0
 private static void NotifyListenersAndChildren(UIContext uiContext, ZComponent obj)
 {
     if (obj != null)
     {
         foreach (var listener in obj.listeners.ToList())
         {
             uiContext.CheckListener(listener);
         }
     }
     if (obj is ZGameObject)
     {
         foreach (var child in ((ZGameObject)obj).children)
         {
             NotifyListenersAndChildren(uiContext, child);
         }
     }
 }
Exemplo n.º 2
0
 public void Focus()
 {
     focusedObject = this;
 }