internal PortalHub() : base() { lock(s_Lock) { if (s_Instance!=null) throw new WaveException(StringConsts.PORTAL_HUB_INSTANCE_IS_ALREADY_AVAILABLE_ERROR); m_Portals = new Registry<Portal>(false); s_Instance = this; } }
internal PortalHub() : base() { lock (s_Lock) { if (s_Instance != null) { throw new WaveException(StringConsts.PORTAL_HUB_INSTANCE_IS_ALREADY_AVAILABLE_ERROR); } m_Portals = new Registry <Portal>(false); s_Instance = this; } }
protected override void Destructor() { lock(s_Lock) { if (s_Instance != null) { s_Instance = null; foreach(var portal in m_Portals) portal.Dispose(); DisposableObject.DisposeAndNull(ref m_ContentFS); base.Destructor(); } } }
protected override void Destructor() { lock (s_Lock) { if (s_Instance != null) { s_Instance = null; foreach (var portal in m_Portals) { portal.Dispose(); } DisposableObject.DisposeAndNull(ref m_ContentFS); base.Destructor(); } } }