using UnityEngine; namespace XLuaTest { [XLua.Hotfix] public class StatefullTest { public StatefullTest() { } public StatefullTest(int a, int b) { if (a > 0) { return; } Debug.Log("a=" + a); if (b > 0) { return; } else { if (a + b > 0) { return; } } Debug.Log("b=" + b); } public int AProp { get; set; } #pragma warning disable 67 #pragma warning disable 1634 public event System.Action AEvent; #pragma warning enable 1634 #pragma warning enable 67 public int this[string field] { get { return 1; } set { } } public void Start() { } void Update() { } public void GenericTest(T a) { } static public void StaticFunc(int a, int b) { } static public void StaticFunc(string a, int b, int c) { } ~StatefullTest() { Debug.Log("~StatefullTest"); } } }