static int SetSprite(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         Framework.LuaComponent obj = (Framework.LuaComponent)ToLua.CheckObject <Framework.LuaComponent>(L, 1);
         string arg0 = ToLua.CheckString(L, 2);
         string arg1 = ToLua.CheckString(L, 3);
         obj.SetSprite(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Ejemplo n.º 2
0
    static int SetSprite(IntPtr L)
    {
#if UNITY_EDITOR
        ToluaProfiler.AddCallRecord("Framework.LuaComponent.SetSprite");
#endif
        try
        {
            ToLua.CheckArgsCount(L, 3);
            Framework.LuaComponent obj = (Framework.LuaComponent)ToLua.CheckObject <Framework.LuaComponent>(L, 1);
            string arg0 = ToLua.CheckString(L, 2);
            string arg1 = ToLua.CheckString(L, 3);
            obj.SetSprite(arg0, arg1);
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }