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); } } }