コード例 #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();
            }
        }
コード例 #2
0
        private void Update()
        {
            mTime.OnBeforeUpdate();
            mGraphic.OnBeforeUpdate();
            mSound.OnBeforeUpdate();
            mPointer.OnBeforeUpdate();
            mKeyboard.OnBeforeUpdate();
            mAccelerometer.OnBeforeUpdate();
            mGeolocation.OnBeforeUpdate();

            UpdateGame();
            DrawGame();
        }
コード例 #3
0
ファイル: BehaviourBase.cs プロジェクト: Chibikuri/sdp
        private void Update()
        {
            mTime.OnBeforeUpdate();
            mGraphic.OnBeforeUpdate();
            mSound.OnBeforeUpdate();
            mPointer.OnBeforeUpdate();
            mKeyboard.OnBeforeUpdate();
            mAccelerometer.OnBeforeUpdate();
            mGeolocation.OnBeforeUpdate();

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