Пример #1
0
    static int CreatePrefabPool(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 3);
        SimplePool obj  = LuaScriptMgr.GetUnityObject <SimplePool>(L, 1);
        string     arg0 = LuaScriptMgr.GetLuaString(L, 2);
        int        arg1 = (int)LuaScriptMgr.GetNumber(L, 3);
        Transform  o    = obj.CreatePrefabPool(arg0, arg1);

        LuaScriptMgr.Push(L, o);
        return(1);
    }