public void Update() { m_NetworkServer.Update(this); world.UpdateServer(); m_NetworkServer.GenerateSnapshot(world, 0); world.PurgeDespawnedEntitites(); m_NetworkServer.SendData(); }
public void Update() { m_NetworkClient.Update(this); if (world != null) { world.UpdateClient(); } if (world != null) { world.PurgeDespawnedEntitites(); } m_NetworkClient.SendData(); }