Exemplo n.º 1
0
        protected override void OnCreate()
        {
            base.OnCreate();

            worker = World.GetExistingSystem <WorkerSystem>();
            networkStatisticsSystem = World.GetOrCreateSystem <NetworkStatisticsSystem>();
        }
Exemplo n.º 2
0
        protected override void OnCreate()
        {
            base.OnCreate();

            worker = World.GetExistingSystem <WorkerSystem>();
            networkStatisticsSystem = World.GetOrCreateSystem <NetworkStatisticsSystem>();
            replicationHandles      = new NativeList <JobHandle>(Allocator.Persistent);
            componentQueues         = new List <NativeQueue <SerializedMessagesToSend.UpdateToSend> >();
        }