public static void UF_RemoveHandle(IFrameHandle handle) { if (handle != null) { s_ListHandle.Remove(handle); s_MapHandle.Remove(handle); } }
public static void UF_AddHandle(IFrameHandle handle) { if (handle != null && !s_MapHandle.ContainsKey(handle)) { if (handle is IOnAwake) { (handle as IOnAwake).UF_OnAwake(); } s_ListHandle.Add(handle); s_MapHandle.Add(handle, s_ListHandle.Count - 1); } }