StatefullTest.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. using UnityEngine;
  2. namespace XLuaTest
  3. {
  4. [XLua.Hotfix]
  5. public class StatefullTest
  6. {
  7. public StatefullTest()
  8. {
  9. }
  10. public StatefullTest(int a, int b)
  11. {
  12. if (a > 0)
  13. {
  14. return;
  15. }
  16. Debug.Log("a=" + a);
  17. if (b > 0)
  18. {
  19. return;
  20. }
  21. else
  22. {
  23. if (a + b > 0)
  24. {
  25. return;
  26. }
  27. }
  28. Debug.Log("b=" + b);
  29. }
  30. public int AProp
  31. {
  32. get;
  33. set;
  34. }
  35. #pragma warning disable 67
  36. #pragma warning disable 1634
  37. public event System.Action<int, double> AEvent;
  38. #pragma warning enable 1634
  39. #pragma warning enable 67
  40. public int this[string field]
  41. {
  42. get
  43. {
  44. return 1;
  45. }
  46. set
  47. {
  48. }
  49. }
  50. public void Start()
  51. {
  52. }
  53. void Update()
  54. {
  55. }
  56. public void GenericTest<T>(T a)
  57. {
  58. }
  59. static public void StaticFunc(int a, int b)
  60. {
  61. }
  62. static public void StaticFunc(string a, int b, int c)
  63. {
  64. }
  65. ~StatefullTest()
  66. {
  67. Debug.Log("~StatefullTest");
  68. }
  69. }
  70. }