123456789101112131415161718192021222324252627 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class EventTool
- {
- public delegate void DisplayDeleteHandle();
- public static event DisplayDeleteHandle _displayDelete;
- public static void DisplayDeleteMethod()
- {
- if (_displayDelete!=null)
- {
- _displayDelete();
- }
- }
- public delegate void RearrangeHandle(Transform tran);
- public static event RearrangeHandle _rearrange;
- public static void RearrangeMethod(Transform tran)
- {
- if (_rearrange != null)
- {
- _rearrange(tran);
- }
- }
- }
|