Esempio n. 1
0
        private Sequence Start()
        {
            mIsRunning = true;

            mTime.OnBeforeUpdate();
            mGraphic.OnBeforeUpdate();
            mSound.OnBeforeUpdate();
            mPointer.OnBeforeUpdate();
            mKeyboard.OnBeforeUpdate();
            mAccelerometer.OnBeforeUpdate();
            mGeolocation.OnBeforeUpdate();

            InitGame();
            mSequence = Entry();
            UpdateGame();
            DrawGame();

            while (enabled)
            {
                yield return(null);

                mTime.OnBeforeUpdate();
                mGraphic.OnBeforeUpdate();
                mSound.OnBeforeUpdate();
                mPointer.OnBeforeUpdate();
                mKeyboard.OnBeforeUpdate();
                mAccelerometer.OnBeforeUpdate();
                mGeolocation.OnBeforeUpdate();

                UpdateGame();
                mIsRunning = mIsRunning && mSequence.MoveNext();
                DrawGame();
            }
        }
        private void Update()
        {
            mTime.OnBeforeUpdate();
            mGraphic.OnBeforeUpdate();
            mSound.OnBeforeUpdate();
            mPointer.OnBeforeUpdate();
            mKeyboard.OnBeforeUpdate();
            mAccelerometer.OnBeforeUpdate();
            mGeolocation.OnBeforeUpdate();

            UpdateGame();
            DrawGame();
        }
Esempio n. 3
0
        private void Update()
        {
            mTime.OnBeforeUpdate();
            mGraphic.OnBeforeUpdate();
            mSound.OnBeforeUpdate();
            mPointer.OnBeforeUpdate();
            mKeyboard.OnBeforeUpdate();
            mAccelerometer.OnBeforeUpdate();
            mGeolocation.OnBeforeUpdate();

            UpdateGame();
            mIsRunning = mIsRunning && mSequence.MoveNext();
            DrawGame();
        }