Ctrl_Space.Gameplay.World.Update C# (CSharp) Méthode

Update() public méthode

public Update ( World world, Particles particles ) : void
world World
particles Ctrl_Space.Graphics.Particles
Résultat void
        public void Update(World world, Particles particles)
        {
            for (int i = 0; i < _gameObjects.Count; i++)
            {
                var obj = _gameObjects[i];
                obj.Update(world, particles);
                if (obj.IsDestroyed)
                {
                    obj.ResetGameObject();
                    Game.Objects.ReleaseObject(obj);
                    _gameObjects[i] = null;
                }
            }
            _gameObjects.RemoveAll(o => o == null);
        }