EventTool.cs 620 B

123456789101112131415161718192021222324252627
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class EventTool
  5. {
  6. public delegate void DisplayDeleteHandle();
  7. public static event DisplayDeleteHandle _displayDelete;
  8. public static void DisplayDeleteMethod()
  9. {
  10. if (_displayDelete!=null)
  11. {
  12. _displayDelete();
  13. }
  14. }
  15. public delegate void RearrangeHandle(Transform tran);
  16. public static event RearrangeHandle _rearrange;
  17. public static void RearrangeMethod(Transform tran)
  18. {
  19. if (_rearrange != null)
  20. {
  21. _rearrange(tran);
  22. }
  23. }
  24. }