public override IEnumerator onBeginTransition()
{
// create a single pixel transparent texture so we can do our squares out to the next scene
_overlayTexture = Graphics.createSingleColorTexture( 1, 1, Color.Transparent );
// obscure the screen
yield return Core.startCoroutine( tickEffectProgressProperty( _textureWipeEffect, duration, easeType ) );
// load up the new Scene
yield return Core.startCoroutine( loadNextScene() );
// dispose of our previousSceneRender. We dont need it anymore.
previousSceneRender.Dispose();
previousSceneRender = null;
// undo the effect
yield return Core.startCoroutine( tickEffectProgressProperty( _textureWipeEffect, duration, EaseHelper.oppositeEaseType( easeType ), true ) );
transitionComplete();
// cleanup
_overlayTexture.Dispose();
Core.content.unloadEffect( _textureWipeEffect );
}