GetControllerAt() public method

Returns a controller object at a certain index.
public GetControllerAt ( int index ) : FairyGUI.Controller
index int Index
return FairyGUI.Controller
示例#1
0
 static public int GetControllerAt(IntPtr l)
 {
     try {
         FairyGUI.GComponent self = (FairyGUI.GComponent)checkSelf(l);
         System.Int32        a1;
         checkType(l, 2, out a1);
         var ret = self.GetControllerAt(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static int GetControllerAt(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         FairyGUI.GComponent obj = (FairyGUI.GComponent)ToLua.CheckObject(L, 1, typeof(FairyGUI.GComponent));
         int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         FairyGUI.Controller o = obj.GetControllerAt(arg0);
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }