| | |
| | | using UnityEngine; |
| | | using Snxxz.UI; |
| | | |
| | | [XLua.Hotfix] |
| | | public class TestMonobehaviour : MonoBehaviour |
| | | { |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | private void OnEnable() |
| | | { |
| | | Debug.Log("this is C# OnEnable !"); |
| | | } |
| | | |
| | | private void OnDisable() |
| | | { |
| | | Debug.Log("this is C# OnDisable !"); |
| | | } |
| | | |
| | | private void LateUpdate() |
| | | { |
| | | Debug.Log("this is C# LateUpdate !"); |
| | | } |
| | | |
| | | void OnGUI() |
| | | { |
| | | if (GUI.Button(new Rect(10, 10, 300, 80), "Hotfix")) |
| | | { |
| | | LuaUtility.DoString("example.hotfix"); |
| | | } |
| | | } |
| | | } |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp7(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | translator.PushAny(L, p0); |
| | | |
| | | PCall(L, 1, 0, errFunc); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | |
| | | static DelegateBridge() |
| | | { |
New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: a53e74ac74dde5647a53af93319b2fcb |
| | | folderAsset: yes |
| | | timeCreated: 1540973730 |
| | | licenseType: Pro |
| | | DefaultImporter: |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 279e5380f475b734f9cda9492678c8b5 |
| | | timeCreated: 1540973730 |
| | | licenseType: Pro |
| | | DefaultImporter: |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 281130e4a76f16646939f2be97180afc |
| | | timeCreated: 1540973730 |
| | | licenseType: Pro |
| | | TextScriptImporter: |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | webGLUseEmbeddedResources: 0 |
| | | webGLUseWasm: 0 |
| | | webGLCompressionFormat: 1 |
| | | scriptingDefineSymbols: {} |
| | | scriptingDefineSymbols: |
| | | 1: HOTFIX_ENABLE |
| | | 7: HOTFIX_ENABLE |
| | | platformArchitecture: |
| | | iOS: 1 |
| | | scriptingBackend: |