Update() public méthode

public Update ( float time ) : void
time float
Résultat void
Exemple #1
0
        public override void Update(float time)
        {
            bindingManager.Update(time);

            SessionTime += time;

            for (var i = 0; i < ClockSpeed; i++)
            {
                base.Update(time / (float)ClockSpeed);
            }

            if (Mode == Modes.STARVED)
            {
                ChildContext = null;
            }
            else if (Mode == Modes.OFF)
            {
                ChildContext = null;
            }

            // After booting
            if (ChildContext == null)
            {
                Push(new ImmediateMode(this));
            }
        }
Exemple #2
0
        public override void Update(float time)
        {
            bindingManager.Update(time);

            base.Update(time);

            if (Mode == Modes.STARVED)
            {
                ChildContext = null;
            }
            else if (Mode == Modes.OFF)
            {
                ChildContext = null;
            }

            // After booting
            if (ChildContext == null)
            {
                Push(new ImmediateMode(this));
            }
        }