protected override void OnDespawn() { base.OnDespawn(); if (m_view != null) { m_view.ClearSubscriptions(); foreach (var manager in GetManagers <INetworkManager>()) { manager.UpdateView(null); } OnDestroyView(); m_view = null; } }
private void CreatureObject_OnDespawn() { _view.ClearSubscriptions(); _server.Room.Destroy(_view, IsPlayer ? Constants.Fainted : Constants.Killed); }
private void WO_Loot_OnDespawn() { _destroy?.Destroy(); _destroy = null; _view.ClearSubscriptions(); _server.Room.Destroy(_view); }
private void WO_Pickup_OnDespawn() { _respawn?.Destroy(); _respawn = null; _view.ClearSubscriptions(); _server.Room.Destroy(_view); }