Beispiel #1
0
 static public int RemoveListener(IntPtr l)
 {
     try
     {
         UnityEngine.Events.UnityEvent <UnityEngine.EventSystems.BaseEventData>  self = checkSelf <UnityEngine.Events.UnityEvent <UnityEngine.EventSystems.BaseEventData> >(l);
         UnityEngine.Events.UnityAction <UnityEngine.EventSystems.BaseEventData> a1;
         checkType(l, 2, out a1);
         self.RemoveListener(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e)
     {
         return(error(l, e));
     }
 }
Beispiel #2
0
 static public int RemoveListener(IntPtr l)
 {
     try
     {
         UnityEngine.Events.UnityEvent <String>  self = checkSelf <UnityEngine.Events.UnityEvent <String> >(l);
         UnityEngine.Events.UnityAction <String> a1;
         checkType(l, 2, out a1);
         self.RemoveListener(a1);
         return(0);
     }
     catch (Exception e)
     {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
        static public int RemoveListener(IntPtr l)
        {
            try
            {
                UnityEngine.Events.UnityEvent<UnityEngine.Vector2> self = checkSelf<UnityEngine.Events.UnityEvent<UnityEngine.Vector2>>(l);
                UnityEngine.Events.UnityAction<UnityEngine.Vector2> a1;
                checkType(l, 2, out a1);
                self.RemoveListener(a1);
				pushValue(l,true);
                return 1;
            }
            catch (Exception e)
            {
                return error(l,e);
            }
        }
Beispiel #4
0
 static public int RemoveListener(IntPtr l)
 {
     try
     {
         UnityEngine.Events.UnityEvent <FSocketStateChanged>  self = checkSelf <UnityEngine.Events.UnityEvent <FSocketStateChanged> >(l);
         UnityEngine.Events.UnityAction <FSocketStateChanged> a1;
         checkType(l, 2, out a1);
         self.RemoveListener(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e)
     {
         return(error(l, e));
     }
 }
Beispiel #5
0
 static public int RemoveListener(IntPtr l)
 {
     try
     {
         UnityEngine.Events.UnityEvent <UnityEngine.EventSystems.PointerEventData.InputButton>  self = checkSelf <UnityEngine.Events.UnityEvent <UnityEngine.EventSystems.PointerEventData.InputButton> >(l);
         UnityEngine.Events.UnityAction <UnityEngine.EventSystems.PointerEventData.InputButton> a1;
         checkType(l, 2, out a1);
         self.RemoveListener(a1);
         // pushValue(l,true);
         // return 1;
         return(0);
     }
     catch (Exception e)
     {
         return(error(l, e));
     }
 }
 static public int RemoveListener(IntPtr l)
 {
     try
     {
         UnityEngine.Events.UnityEvent <string>  self = checkSelf <UnityEngine.Events.UnityEvent <string> >(l);
         UnityEngine.Events.UnityAction <string> a1;
         checkType(l, 2, out a1);
         self.RemoveListener(a1);
         // pushValue(l,true);
         // return 1;
         return(0);
     }
     catch (Exception e)
     {
         return(error(l, e));
     }
 }
 static public int RemoveListener(IntPtr l)
 {
     try
     {
         UnityEngine.Events.UnityEvent <UnityEngine.UI.Extensions.ReorderableList.ReorderableListEventStruct>  self = checkSelf <UnityEngine.Events.UnityEvent <UnityEngine.UI.Extensions.ReorderableList.ReorderableListEventStruct> >(l);
         UnityEngine.Events.UnityAction <UnityEngine.UI.Extensions.ReorderableList.ReorderableListEventStruct> a1;
         checkType(l, 2, out a1);
         self.RemoveListener(a1);
         // pushValue(l,true);
         // return 1;
         return(0);
     }
     catch (Exception e)
     {
         return(error(l, e));
     }
 }
Beispiel #8
0
        static StackObject *RemoveListener_1(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.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.Events.UnityAction @call = (UnityEngine.Events.UnityAction) typeof(UnityEngine.Events.UnityAction).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

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

            instance_of_this_method.RemoveListener(@call);

            return(__ret);
        }
        static StackObject *RemoveListener_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.Events.UnityAction <System.Single> @call = (UnityEngine.Events.UnityAction <System.Single>) typeof(UnityEngine.Events.UnityAction <System.Single>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 8);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.Events.UnityEvent <System.Single> instance_of_this_method = (UnityEngine.Events.UnityEvent <System.Single>) typeof(UnityEngine.Events.UnityEvent <System.Single>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.RemoveListener(@call);

            return(__ret);
        }
        int UnityEngineEventsUnityEvent_m_RemoveListener(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;


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


            {
                UnityEngine.Events.UnityAction _call = translator.GetDelegate <UnityEngine.Events.UnityAction>(L, 2);

                gen_to_be_invoked.RemoveListener(_call);



                return(0);
            }
        }
        public static void Check(UnityEngine.Events.UnityAction successCallback)
        {
#if UNITY_EDITOR
            return;
#endif
            if (isSuccess)
            {
                successCallback.Invoke();
                return;
            }

            if (!isInited)
            {
                mSuccessCallback.RemoveListener(successCallback);
                mSuccessCallback.AddListener(successCallback);

                if (!isIniting)
                {
                    isIniting = true;

                    /*
                     * FirebaseApp.CheckAndFixDependenciesAsync().ContinueWith(task =>
                     * {
                     *  isIniting = false;
                     *  isInited = true;
                     *  var dependencyStatus = task.Result;
                     *  if (dependencyStatus == DependencyStatus.Available)
                     *  {
                     *      isSuccess = true;
                     *      needCallback = true;
                     *  }
                     *  else
                     *  {
                     *      isSuccess = false;
                     *      Debug.LogError(string.Format("Could not resolve all Firebase dependencies: {0}", dependencyStatus));
                     *  }
                     * });
                     */
                }
            }
        }
Beispiel #12
0
        static int _m_RemoveListener(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            UnityEngine.Events.UnityEvent <UnityEngine.EventSystems.BaseEventData> __cl_gen_to_be_invoked = (UnityEngine.Events.UnityEvent <UnityEngine.EventSystems.BaseEventData>)translator.FastGetCSObj(L, 1);


            try {
                {
                    UnityEngine.Events.UnityAction <UnityEngine.EventSystems.BaseEventData> call = translator.GetDelegate <UnityEngine.Events.UnityAction <UnityEngine.EventSystems.BaseEventData> >(L, 2);

                    __cl_gen_to_be_invoked.RemoveListener(call);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Beispiel #13
0
        static int _m_RemoveListener(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityEngine.Events.UnityEvent <string> gen_to_be_invoked = (UnityEngine.Events.UnityEvent <string>)translator.FastGetCSObj(L, 1);



                {
                    UnityEngine.Events.UnityAction <string> _call = translator.GetDelegate <UnityEngine.Events.UnityAction <string> >(L, 2);

                    gen_to_be_invoked.RemoveListener(_call);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Beispiel #14
0
 void OnDisable()
 {
     LoadedUIMovieEvent.RemoveListener(Loaded);
     movieFinishEvent.RemoveListener(Finished);
 }
Beispiel #15
0
 void OnDisable()
 {
     LoadedImageEvent.RemoveListener(Loaded);
     playImageEndEvent.RemoveListener(PlayEnded);
 }
Beispiel #16
0
 public static void AddListenerOnce(this UnityEngine.Events.UnityEvent unityEvent, UnityEngine.Events.UnityAction unityAction)
 {
     unityEvent.RemoveListener(unityAction);
     unityEvent.AddListener(unityAction);
 }
 void OnDisable()
 {
     LoadedEvent.RemoveListener(Loaded);
 }