Ejemplo n.º 1
0
        protected override void OnCreate()
        {
            playerClientSystem = World.GetExistingSystem <PlayerClientSystem>();
            endBarrier         = World.GetExistingSystem <EndCommandBufferSystem>();


            _actorEntityFromActorId = new NativeHashMap <int, Entity>(actorCountInHashMap, Allocator.Persistent);
        }
Ejemplo n.º 2
0
        protected void OnInit(Transform root)
        {
            //
            World.GetExistingSystem <NetworkStreamConnectSuccessSystem>().AddSystem(this);

            //
            endBarrier         = World.GetExistingSystem <EndCommandBufferSystem>();
            playerClientSystem = World.GetExistingSystem <PlayerClientSystem>();
        }
Ejemplo n.º 3
0
        protected override void OnCreate()
        {
            playerClientSystem = World.GetExistingSystem <PlayerClientSystem>();

            quitGameQuery = GetEntityQuery(new EntityQueryDesc
            {
                All = new ComponentType[] { ComponentType.ReadOnly <Player>() },
            });
        }
 protected override void OnCreate()
 {
     endBarrier         = World.GetExistingSystem <EndCommandBufferSystem>();
     playerClientSystem = World.GetExistingSystem <PlayerClientSystem>();
 }
Ejemplo n.º 5
0
        protected void OnInit(Transform root)
        {
            playerClientSystem = World.GetExistingSystem <PlayerClientSystem>();

            killInfosPanel = GameObject.FindObjectOfType <KillInfosPanel>();
        }