diff --git a/Assets/MsgTransmitTools/src/QFrameCopy.cs b/Assets/MsgTransmitTools/src/QFrameCopy.cs index d7f2761..a1dcd6c 100644 --- a/Assets/MsgTransmitTools/src/QFrameCopy.cs +++ b/Assets/MsgTransmitTools/src/QFrameCopy.cs @@ -473,31 +473,6 @@ namespace QFrameworkCP } } - public class UnRegisterOnDestroyTrigger - { - private readonly HashSet mUnRegisters = new HashSet(); - - public void AddUnRegister(IUnRegister unRegister) - { - mUnRegisters.Add(unRegister); - } - - public void RemoveUnRegister(IUnRegister unRegister) - { - mUnRegisters.Remove(unRegister); - } - - private void OnDestroy() - { - foreach (var unRegister in mUnRegisters) - { - unRegister.UnRegister(); - } - - mUnRegisters.Clear(); - } - } - public class TypeEventSystem { private readonly EasyEvents mEvents = new EasyEvents();