protected override void OnCreate() { m_PendingPings = new NativeArray <PendingPing>(64, Allocator.Persistent); m_PingStats = new NativeArray <int>(2, Allocator.Persistent); m_Barrier = World.GetOrCreateSystem <BeginSimulationEntityCommandBufferSystem>(); m_DriverSystem = World.GetOrCreateSystem <PingDriverSystem>(); m_ConnectionGroup = GetEntityQuery(ComponentType.ReadWrite <PingClientConnectionComponentData>()); // Group used only to get dependency tracking for the driver m_ServerConnectionGroup = GetEntityQuery(ComponentType.ReadWrite <PingServerConnectionComponentData>()); }
protected override void OnCreate() { m_ServerDriverSystem = World.GetOrCreateSystem <PingDriverSystem>(); }