Update() public method

public Update ( float time ) : void
time float
return void
Esempio n. 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));
            }
        }
Esempio n. 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));
            }
        }