Exemplo n.º 1
0
 static int AddAura(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 4);
         Skill obj = (Skill)ToLua.CheckObject(L, 1, typeof(Skill));
         UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
         string arg1 = ToLua.CheckString(L, 3);
         int    arg2 = (int)LuaDLL.luaL_checknumber(L, 4);
         obj.AddAura(arg0, arg1, arg2);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }