Esempio n. 1
0
        /// <inheritdoc />
        public override void Update(float frameTime)
        {
            var entities = EntityManager.GetEntities(EntityQuery);

            _physicsManager.BuildCollisionGrid();
            foreach (var entity in entities)
            {
                if (_pauseManager.IsEntityPaused(entity))
                {
                    continue;
                }
                HandleMovement(entity, frameTime);
            }
            foreach (var entity in entities)
            {
                DoMovement(entity, frameTime);
            }
        }