Exemplo n.º 1
0
    static int set_CullGroup(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            GameManager         obj  = (GameManager)o;
            CullingGroupLoadRes arg0 = (CullingGroupLoadRes)ToLua.CheckUnityObject(L, 2, typeof(CullingGroupLoadRes));
            obj.CullGroup = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index CullGroup on a nil value" : e.Message));
        }
    }
Exemplo n.º 2
0
    static int get_CullGroup(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            GameManager         obj = (GameManager)o;
            CullingGroupLoadRes ret = obj.CullGroup;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index CullGroup on a nil value" : e.Message));
        }
    }