Exemplo n.º 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;
     }
 }
Exemplo n.º 2
0
 private void CreatureObject_OnDespawn()
 {
     _view.ClearSubscriptions();
     _server.Room.Destroy(_view, IsPlayer ? Constants.Fainted : Constants.Killed);
 }
Exemplo n.º 3
0
 private void WO_Loot_OnDespawn()
 {
     _destroy?.Destroy(); _destroy = null;
     _view.ClearSubscriptions();
     _server.Room.Destroy(_view);
 }
Exemplo n.º 4
0
 private void WO_Pickup_OnDespawn()
 {
     _respawn?.Destroy(); _respawn = null;
     _view.ClearSubscriptions();
     _server.Room.Destroy(_view);
 }