Protogame.DefaultSensorEngine.Update C# (CSharp) Méthode

Update() public méthode

Internally called by SensorEngineHook to update sensors during the update step.
public Update ( IGameContext gameContext, IUpdateContext updateContext ) : void
gameContext IGameContext The current game context.
updateContext IUpdateContext The current update context.
Résultat void
        public void Update(IGameContext gameContext, IUpdateContext updateContext)
        {
            foreach (var sensor in _sensors)
            {
                sensor.Update(gameContext, updateContext);
            }
        }