StateMapping.cs 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. using System;
  2. using System.Collections;
  3. using System.Runtime.CompilerServices;
  4. namespace MonsterLove.StateMachine
  5. {
  6. public class StateMapping
  7. {
  8. public StateMapping(Enum state)
  9. {
  10. if (StateMapping._003C_003Ef__mg_0024cache0 == null)
  11. {
  12. StateMapping._003C_003Ef__mg_0024cache0 = new StateMapping.DoNothingCoroutine(StateMachineEngine.DoNothingCoroutine);
  13. }
  14. this.Enter = StateMapping._003C_003Ef__mg_0024cache0;
  15. if (StateMapping._003C_003Ef__mg_0024cache1 == null)
  16. {
  17. StateMapping._003C_003Ef__mg_0024cache1 = new StateMapping.DoNothingCoroutine(StateMachineEngine.DoNothingCoroutine);
  18. }
  19. this.Exit = StateMapping._003C_003Ef__mg_0024cache1;
  20. if (StateMapping._003C_003Ef__mg_0024cache2 == null)
  21. {
  22. StateMapping._003C_003Ef__mg_0024cache2 = new Action(StateMachineEngine.DoNothing);
  23. }
  24. this.Update = StateMapping._003C_003Ef__mg_0024cache2;
  25. if (StateMapping._003C_003Ef__mg_0024cache3 == null)
  26. {
  27. StateMapping._003C_003Ef__mg_0024cache3 = new Action(StateMachineEngine.DoNothing);
  28. }
  29. this.LateUpdate = StateMapping._003C_003Ef__mg_0024cache3;
  30. if (StateMapping._003C_003Ef__mg_0024cache4 == null)
  31. {
  32. StateMapping._003C_003Ef__mg_0024cache4 = new Action(StateMachineEngine.DoNothing);
  33. }
  34. this.FixedUpdate = StateMapping._003C_003Ef__mg_0024cache4;
  35. this.state = state;
  36. }
  37. public Enum state;
  38. public StateMapping.DoNothingCoroutine Enter;
  39. public StateMapping.DoNothingCoroutine Exit;
  40. public Action Update;
  41. public Action LateUpdate;
  42. public Action FixedUpdate;
  43. [CompilerGenerated]
  44. private static StateMapping.DoNothingCoroutine _003C_003Ef__mg_0024cache0;
  45. [CompilerGenerated]
  46. private static StateMapping.DoNothingCoroutine _003C_003Ef__mg_0024cache1;
  47. [CompilerGenerated]
  48. private static Action _003C_003Ef__mg_0024cache2;
  49. [CompilerGenerated]
  50. private static Action _003C_003Ef__mg_0024cache3;
  51. [CompilerGenerated]
  52. private static Action _003C_003Ef__mg_0024cache4;
  53. public delegate IEnumerator DoNothingCoroutine(object userData = null);
  54. public delegate void DoNothing(object userData = null);
  55. }
  56. }