From 1607b44fb871eff301026615b32944bfced2e9f0 Mon Sep 17 00:00:00 2001 From: gaoxin Date: Wed, 2 Jun 2021 18:02:21 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=8A=A5=E9=94=99=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Generate/UnityEngine_ApplicationWrap.cs | 43 ------------------- 1 file changed, 43 deletions(-) diff --git a/Assets/Source/Generate/UnityEngine_ApplicationWrap.cs b/Assets/Source/Generate/UnityEngine_ApplicationWrap.cs index 8e6aedd8cf..8bb8a9fe63 100644 --- a/Assets/Source/Generate/UnityEngine_ApplicationWrap.cs +++ b/Assets/Source/Generate/UnityEngine_ApplicationWrap.cs @@ -54,7 +54,6 @@ public class UnityEngine_ApplicationWrap L.RegVar("logMessageReceived", get_logMessageReceived, set_logMessageReceived); L.RegVar("logMessageReceivedThreaded", get_logMessageReceivedThreaded, set_logMessageReceivedThreaded); L.RegVar("onBeforeRender", get_onBeforeRender, set_onBeforeRender); - L.RegVar("focusChanged", get_focusChanged, set_focusChanged); L.RegVar("wantsToQuit", get_wantsToQuit, set_wantsToQuit); L.RegVar("quitting", get_quitting, set_quitting); L.RegFunction("AdvertisingIdentifierCallback", UnityEngine_Application_AdvertisingIdentifierCallback); @@ -753,13 +752,6 @@ public class UnityEngine_ApplicationWrap return 1; } - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int get_focusChanged(IntPtr L) - { - ToLua.Push(L, new EventObject(typeof(System.Action))); - return 1; - } - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_wantsToQuit(IntPtr L) { @@ -959,41 +951,6 @@ public class UnityEngine_ApplicationWrap } } - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int set_focusChanged(IntPtr L) - { - try - { - EventObject arg0 = null; - - if (LuaDLL.lua_isuserdata(L, 2) != 0) - { - arg0 = (EventObject)ToLua.ToObject(L, 2); - } - else - { - return LuaDLL.luaL_throw(L, "The event 'UnityEngine.Application.focusChanged' can only appear on the left hand side of += or -= when used outside of the type 'UnityEngine.Application'"); - } - - if (arg0.op == EventOp.Add) - { - System.Action ev = (System.Action)arg0.func; - UnityEngine.Application.focusChanged += ev; - } - else if (arg0.op == EventOp.Sub) - { - System.Action ev = (System.Action)arg0.func; - UnityEngine.Application.focusChanged -= ev; - } - - return 0; - } - catch (Exception e) - { - return LuaDLL.toluaL_exception(L, e); - } - } - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_wantsToQuit(IntPtr L) {