internal void ApplyController(Controller c) { _applyingController = c; int cnt = _children.Count; for (int i = 0; i < cnt; ++i) { GObject child = _children[i]; child.HandleControllerChanged(c); } _applyingController = null; c.RunActions(); }
static int RunActions(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); FairyGUI.Controller obj = (FairyGUI.Controller)ToLua.CheckObject <FairyGUI.Controller>(L, 1); obj.RunActions(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }