void Start() { // 保存实例化对象 Instance = this; // 初始化 Init(); }
static int Clear(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); AstarFight obj = (AstarFight)ToLua.CheckObject(L, 1, typeof(AstarFight)); obj.Clear(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int setMaxX(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); AstarFight obj = (AstarFight)ToLua.CheckObject(L, 1, typeof(AstarFight)); float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); obj.setMaxX(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int setAllZhenxingList(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); int[] arg0 = ToLua.CheckNumberArray <int>(L, 1); System.Collections.Generic.Dictionary <int, int[]> o = AstarFight.setAllZhenxingList(arg0); ToLua.PushObject(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int isZhangAi(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); AstarFight obj = (AstarFight)ToLua.CheckObject(L, 1, typeof(AstarFight)); UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2); int arg1 = (int)LuaDLL.luaL_checknumber(L, 3); obj.isZhangAi(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int InitMap(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); AstarFight obj = (AstarFight)ToLua.CheckObject(L, 1, typeof(AstarFight)); int[][] arg0 = ToLua.CheckObjectArray <int[]>(L, 2); int[][] arg1 = ToLua.CheckObjectArray <int[]>(L, 3); obj.InitMap(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int getNum(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); AstarFight obj = (AstarFight)ToLua.CheckObject(L, 1, typeof(AstarFight)); UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2); UnityEngine.Vector3 o = obj.getNum(arg0); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_ItemCount(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); AstarFight obj = (AstarFight)o; int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.ItemCount = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index ItemCount on a nil value" : e.Message)); } }
static int set_PathPointFather(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); AstarFight obj = (AstarFight)o; UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.GameObject)); obj.PathPointFather = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index PathPointFather on a nil value" : e.Message)); } }
static int set_LoadMap(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); AstarFight obj = (AstarFight)o; LoadMap arg0 = (LoadMap)ToLua.CheckUnityObject(L, 2, typeof(LoadMap)); obj.LoadMap = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index LoadMap on a nil value" : e.Message)); } }
static int set_IsJumpPoint(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); AstarFight obj = (AstarFight)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.IsJumpPoint = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index IsJumpPoint on a nil value" : e.Message)); } }
static int get_ItemCount(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); AstarFight obj = (AstarFight)o; int ret = obj.ItemCount; LuaDLL.lua_pushinteger(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index ItemCount on a nil value" : e.Message)); } }
static int get_PathPointFather(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); AstarFight obj = (AstarFight)o; UnityEngine.GameObject ret = obj.PathPointFather; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index PathPointFather on a nil value" : e.Message)); } }
static int get_LoadMap(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); AstarFight obj = (AstarFight)o; LoadMap ret = obj.LoadMap; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index LoadMap on a nil value" : e.Message)); } }
static int setZhenxingInfo(IntPtr L) { try { ToLua.CheckArgsCount(L, 4); AstarFight obj = (AstarFight)ToLua.CheckObject(L, 1, typeof(AstarFight)); UnityEngine.Transform arg0 = (UnityEngine.Transform)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Transform)); int arg1 = (int)LuaDLL.luaL_checknumber(L, 3); int arg2 = (int)LuaDLL.luaL_checknumber(L, 4); obj.setZhenxingInfo(arg0, arg1, arg2); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
public void OnDestroy() { // 销毁时清空引用 Instance = null; }