From b5a6252d9a3729f599bd6062a7da386c303cdb1a Mon Sep 17 00:00:00 2001 From: "DESKTOP-B25GA9E\\W35" <1733709035@qq.com> Date: Tue, 21 Mar 2023 11:32:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=A4=9A=E4=BD=99=E4=BE=9D?= =?UTF-8?q?=E8=B5=96=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/MsgTransmitTools/src/QFrameCopy.cs | 25 ----------------------- 1 file changed, 25 deletions(-) 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();