| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- 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<int, double> 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>(T a)
- {
- }
- static public void StaticFunc(int a, int b)
- {
- }
- static public void StaticFunc(string a, int b, int c)
- {
- }
- ~StatefullTest()
- {
- Debug.Log("~StatefullTest");
- }
- }
- }
|