static StackObject *CancelInvoke_3(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, 1);

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

            instance_of_this_method.CancelInvoke();

            return(__ret);
        }
        static int _m_CancelInvoke(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityEngine.MonoBehaviour gen_to_be_invoked = (UnityEngine.MonoBehaviour)translator.FastGetCSObj(L, 1);


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 1)
                {
                    gen_to_be_invoked.CancelInvoke(  );



                    return(0);
                }
                if (gen_param_count == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
                {
                    string _methodName = LuaAPI.lua_tostring(L, 2);

                    gen_to_be_invoked.CancelInvoke(
                        _methodName);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }

            return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.MonoBehaviour.CancelInvoke!"));
        }
        static StackObject *CancelInvoke_4(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);
            System.String @methodName = (System.String) typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.MonoBehaviour instance_of_this_method = (UnityEngine.MonoBehaviour) typeof(UnityEngine.MonoBehaviour).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.CancelInvoke(@methodName);

            return(__ret);
        }
    public static int CancelInvoke(System.IntPtr L)
    {
        int nargs = LuaAPI.GetTop(L);

        if (nargs == 1 && LuaAPI.IsObject(L, 1))
        {
            UnityEngine.MonoBehaviour arg0 = (UnityEngine.MonoBehaviour)LuaCallback.ToObject(L, 1);
            arg0.CancelInvoke();

            return(0);
        }
        if (nargs == 2 && LuaAPI.IsObject(L, 1) && LuaAPI.IsString(L, 2))
        {
            UnityEngine.MonoBehaviour arg0 = (UnityEngine.MonoBehaviour)LuaCallback.ToObject(L, 1);
            System.String             arg1 = (System.String)LuaCallback.ToString(L, 2);
            arg0.CancelInvoke(arg1);

            return(0);
        }
        return(0);
    }
Beispiel #5
0
 public static void Register()
 {
     if (doNotModify)
     {
         return;
     }
     object o = null;
     {
         UnityEngine.MonoBehaviour v = (UnityEngine.MonoBehaviour)o;
         v = new UnityEngine.MonoBehaviour();
         var p1 = v.tag;
         v.tag = (System.String)o;
         var p2 = v.name;
         v.name = (System.String)o;
         v.IsInvoking();
         v.CancelInvoke();
         v.Invoke((System.String)o, (System.Single)o);
         v.InvokeRepeating((System.String)o, (System.Single)o, (System.Single)o);
         v.CancelInvoke((System.String)o);
         v.IsInvoking((System.String)o);
         v.StartCoroutine((System.String)o);
         v.StartCoroutine((System.String)o, (System.Object)o);
         v.StartCoroutine((System.Collections.IEnumerator)o);
         v.StopCoroutine((System.Collections.IEnumerator)o);
         v.StopCoroutine((UnityEngine.Coroutine)o);
         UnityEngine.MonoBehaviour.print((System.Object)o);
         v.GetComponent((System.Type)o);
         UnityEngine.Component p3 = (UnityEngine.Component)o;
         v.TryGetComponent((System.Type)o, out p3);
         v.GetComponentInChildren((System.Type)o, (System.Boolean)o);
         v.GetComponentInChildren((System.Type)o);
         v.GetComponentsInChildren((System.Type)o, (System.Boolean)o);
         v.GetComponentsInChildren((System.Type)o);
         v.GetComponentInParent((System.Type)o);
         v.GetComponentsInParent((System.Type)o, (System.Boolean)o);
         v.GetComponentsInParent((System.Type)o);
         v.GetComponents((System.Type)o);
         v.GetComponents((System.Type)o, (System.Collections.Generic.List <UnityEngine.Component>)o);
         v.CompareTag((System.String)o);
         v.SendMessageUpwards((System.String)o, (System.Object)o);
         v.SendMessageUpwards((System.String)o);
         v.SendMessageUpwards((System.String)o, (UnityEngine.SendMessageOptions)o);
         v.SendMessage((System.String)o, (System.Object)o);
         v.SendMessage((System.String)o);
         v.SendMessage((System.String)o, (UnityEngine.SendMessageOptions)o);
         v.BroadcastMessage((System.String)o, (System.Object)o);
         v.BroadcastMessage((System.String)o);
         v.BroadcastMessage((System.String)o, (UnityEngine.SendMessageOptions)o);
         v.GetInstanceID();
         v.GetHashCode();
         v.Equals((System.Object)o);
         v.ToString();
     }
     {
         UnityEngine.Transform v = (UnityEngine.Transform)o;
         var p4 = v.position;
         v.position = (UnityEngine.Vector3)o;
         var p5 = v.localPosition;
         v.localPosition = (UnityEngine.Vector3)o;
         var p6 = v.eulerAngles;
         v.eulerAngles = (UnityEngine.Vector3)o;
         var p7 = v.localEulerAngles;
         v.localEulerAngles = (UnityEngine.Vector3)o;
         var p8 = v.right;
         v.right = (UnityEngine.Vector3)o;
         var p9 = v.up;
         v.up = (UnityEngine.Vector3)o;
         var pA = v.forward;
         v.forward = (UnityEngine.Vector3)o;
         var pB = v.rotation;
         v.rotation = (UnityEngine.Quaternion)o;
         var pC = v.localRotation;
         v.localRotation = (UnityEngine.Quaternion)o;
         var pD = v.localScale;
         v.localScale = (UnityEngine.Vector3)o;
         var pE = v.parent;
         v.parent = (UnityEngine.Transform)o;
         var pF  = v.worldToLocalMatrix;
         var p10 = v.localToWorldMatrix;
         var p11 = v.root;
         var p12 = v.lossyScale;
         var p13 = v.hierarchyCapacity;
         v.hierarchyCapacity = (System.Int32)o;
         var p14 = v.hierarchyCount;
         var p15 = v.tag;
         v.tag = (System.String)o;
         var p16 = v.name;
         v.name = (System.String)o;
         v.SetParent((UnityEngine.Transform)o);
         v.SetPositionAndRotation((UnityEngine.Vector3)o, (UnityEngine.Quaternion)o);
         v.Translate((UnityEngine.Vector3)o, (UnityEngine.Space)o);
         v.Translate((UnityEngine.Vector3)o);
         v.Translate((System.Single)o, (System.Single)o, (System.Single)o, (UnityEngine.Space)o);
         v.Translate((System.Single)o, (System.Single)o, (System.Single)o);
         v.Translate((UnityEngine.Vector3)o, (UnityEngine.Transform)o);
         v.Translate((System.Single)o, (System.Single)o, (System.Single)o, (UnityEngine.Transform)o);
         v.Rotate((UnityEngine.Vector3)o, (UnityEngine.Space)o);
         v.Rotate((UnityEngine.Vector3)o);
         v.Rotate((System.Single)o, (System.Single)o, (System.Single)o, (UnityEngine.Space)o);
         v.Rotate((System.Single)o, (System.Single)o, (System.Single)o);
         v.Rotate((UnityEngine.Vector3)o, (System.Single)o, (UnityEngine.Space)o);
         v.Rotate((UnityEngine.Vector3)o, (System.Single)o);
         v.RotateAround((UnityEngine.Vector3)o, (UnityEngine.Vector3)o, (System.Single)o);
         v.LookAt((UnityEngine.Transform)o, (UnityEngine.Vector3)o);
         v.LookAt((UnityEngine.Transform)o);
         v.LookAt((UnityEngine.Vector3)o, (UnityEngine.Vector3)o);
         v.LookAt((UnityEngine.Vector3)o);
         v.TransformDirection((UnityEngine.Vector3)o);
         v.TransformDirection((System.Single)o, (System.Single)o, (System.Single)o);
         v.InverseTransformDirection((UnityEngine.Vector3)o);
         v.InverseTransformDirection((System.Single)o, (System.Single)o, (System.Single)o);
         v.TransformVector((UnityEngine.Vector3)o);
         v.TransformVector((System.Single)o, (System.Single)o, (System.Single)o);
         v.InverseTransformVector((UnityEngine.Vector3)o);
         v.InverseTransformVector((System.Single)o, (System.Single)o, (System.Single)o);
         v.TransformPoint((UnityEngine.Vector3)o);
         v.TransformPoint((System.Single)o, (System.Single)o, (System.Single)o);
         v.InverseTransformPoint((UnityEngine.Vector3)o);
         v.InverseTransformPoint((System.Single)o, (System.Single)o, (System.Single)o);
         v.Find((System.String)o);
         v.GetEnumerator();
         v.GetComponent((System.Type)o);
         UnityEngine.Component p17 = (UnityEngine.Component)o;
         v.TryGetComponent((System.Type)o, out p17);
         v.GetComponentInChildren((System.Type)o, (System.Boolean)o);
         v.GetComponentInChildren((System.Type)o);
         v.GetComponentsInChildren((System.Type)o, (System.Boolean)o);
         v.GetComponentsInChildren((System.Type)o);
         v.GetComponentInParent((System.Type)o);
         v.GetComponentsInParent((System.Type)o, (System.Boolean)o);
         v.GetComponentsInParent((System.Type)o);
         v.GetComponents((System.Type)o);
         v.GetComponents((System.Type)o, (System.Collections.Generic.List <UnityEngine.Component>)o);
         v.CompareTag((System.String)o);
         v.SendMessageUpwards((System.String)o, (System.Object)o);
         v.SendMessageUpwards((System.String)o);
         v.SendMessageUpwards((System.String)o, (UnityEngine.SendMessageOptions)o);
         v.SendMessage((System.String)o, (System.Object)o);
         v.SendMessage((System.String)o);
         v.SendMessage((System.String)o, (UnityEngine.SendMessageOptions)o);
         v.BroadcastMessage((System.String)o, (System.Object)o);
         v.BroadcastMessage((System.String)o);
         v.BroadcastMessage((System.String)o, (UnityEngine.SendMessageOptions)o);
         v.GetInstanceID();
         v.GetHashCode();
         v.Equals((System.Object)o);
         v.ToString();
     }
 }