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(); }
private void Update() { mTime.OnBeforeUpdate(); mGraphic.OnBeforeUpdate(); mSound.OnBeforeUpdate(); mPointer.OnBeforeUpdate(); mKeyboard.OnBeforeUpdate(); mAccelerometer.OnBeforeUpdate(); mGeolocation.OnBeforeUpdate(); UpdateGame(); mIsRunning = mIsRunning && mSequence.MoveNext(); DrawGame(); }