Ejemplo n.º 1
0
 static int RemoveItem(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         FirClient.Component.CObjectFollow obj = (FirClient.Component.CObjectFollow)ToLua.CheckObject <FirClient.Component.CObjectFollow>(L, 1);
         string arg0 = ToLua.CheckString(L, 2);
         obj.RemoveItem(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Ejemplo n.º 2
0
 static int AddItem(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 6);
         FirClient.Component.CObjectFollow obj = (FirClient.Component.CObjectFollow)ToLua.CheckObject <FirClient.Component.CObjectFollow>(L, 1);
         string arg0 = ToLua.CheckString(L, 2);
         FirClient.Component.FollowType arg1 = (FirClient.Component.FollowType)ToLua.CheckObject(L, 3, TypeTraits <FirClient.Component.FollowType> .type);
         float arg2 = (float)LuaDLL.luaL_checknumber(L, 4);
         UnityEngine.Transform arg3 = (UnityEngine.Transform)ToLua.CheckObject <UnityEngine.Transform>(L, 5);
         UnityEngine.Transform arg4 = (UnityEngine.Transform)ToLua.CheckObject <UnityEngine.Transform>(L, 6);
         obj.AddItem(arg0, arg1, arg2, arg3, arg4);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }