protected override void OnCreate()
        {
            base.OnCreate();
            this.SortSystems();

            _isServer = World.GetExistingSystem <ServerSimulationSystemGroup>() != null;
            if (_isServer)
            {
                return;
            }
            _tickSimulationSystemGroup = World.GetExistingSystem <TickSimulationSystemGroup>();
            RequireSingletonForUpdate <NetworkSnapshotAckComponent>();
        }
Esempio n. 2
0
 protected override void OnCreate()
 {
     RequireForUpdate(EntityManager.CreateEntityQuery(ComponentType.ReadOnly <TCommandData>()));
     _clientTickSimulationSystemGroup = World.GetOrCreateSystem <TickSimulationSystemGroup>();
 }