public override void DoDestroy() { foreach (var mgr in _systems) { mgr.DoDestroy(); } Debug.FlushTrace(); }
private void OnDestroy() { netClient?.Send(new Msg_QuitRoom()); foreach (var mgr in managers) { mgr.DoDestroy(); } if (!isReplay) { RecordHelper.Serialize(recordFilePath, this); } Debug.FlushTrace(); DoDestroy(); }