static int IntToEnum(IntPtr L)
    {
        int arg0 = (int)LuaDLL.lua_tonumber(L, 1);

        UnityEngine.AnimatorCullingMode o = (UnityEngine.AnimatorCullingMode)arg0;
        ToLua.Push(L, o);
        return(1);
    }
Exemplo n.º 2
0
        static StackObject *set_cullingMode_1(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.AnimatorCullingMode @value = (UnityEngine.AnimatorCullingMode) typeof(UnityEngine.AnimatorCullingMode).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.Animator instance_of_this_method = (UnityEngine.Animator) typeof(UnityEngine.Animator).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.cullingMode = value;

            return(__ret);
        }
 static void Push(IntPtr L, UnityEngine.AnimatorCullingMode arg)
 {
     ToLua.Push(L, arg);
 }