void Start() { LuaManager.GetInstance().Init(); LuaManager.GetInstance().DoLuaFile("Main"); Debug.Log(Add(10, 20)); Speak("NB"); hotfix = new HotfixTest(); hotfix.Speak("jfdisjfi"); //StartCoroutine(TestCoroutine()); this.Age = 100; Debug.Log(this.Age); this[99] = 100; Debug.Log(this[9999]); unityAction += TestDelegate; unityAction -= TestDelegate; HotfixTest2 <string> t1 = new HotfixTest2 <string>(); t1.Test("123456"); HotfixTest2 <int> t2 = new HotfixTest2 <int>(); t2.Test(20000); }
public static void CallHotfixTest() { var h1 = new HotfixTest(); UnityEngine.Debug.LogFormat("HotfixTest1: {0}", h1.Foo(12)); var h2 = new HotfixTest2(); UnityEngine.Debug.LogFormat("HotfixTest2: {0}", h2.Foo(12)); }