/// <summary> /// 移除事件 /// </summary> /// <param name="list">事件</param> /// <param name="id">回调ID</param> public void RemoveUIEventHandle(UnityEvent list, int id) { if (list == null || id <= 0) { return; } for (int i = 0; i < _eventData.Count; i++) { EventData data = _eventData[i]; if (data.ID != id) { continue; } data.Destroy(list); break; } }