Ejemplo n.º 1
0
        protected override void OnStartRunning()
        {
            var controlEntity = GetSingletonEntity <PlayerControlData>();

            _ltwData       = EntityManager.GetComponentData <PlayerLTWData>(controlEntity);
            _ltwData.Value = new NativeArray <LocalToWorld>(_shipQuery.CalculateEntityCount(), Allocator.Persistent);
        }
Ejemplo n.º 2
0
        protected override void OnStartRunning()
        {
            var controlEntity = GetSingletonEntity <PlayerControlData>();

            _ltwData = EntityManager.GetComponentData <PlayerLTWData>(controlEntity);
        }