示例#1
0
 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);
 }
示例#3
0
 private void WO_Loot_OnDespawn()
 {
     _destroy?.Destroy(); _destroy = null;
     _view.ClearSubscriptions();
     _server.Room.Destroy(_view);
 }
示例#4
0
 private void WO_Pickup_OnDespawn()
 {
     _respawn?.Destroy(); _respawn = null;
     _view.ClearSubscriptions();
     _server.Room.Destroy(_view);
 }