public override void onEnter() { base.onEnter(); CCLayerColor l = CCLayerColor.layerWithColor(m_tColor); m_pInScene.Visible = false; AddChild(l, 2, kSceneFade); Node f = GetChildByTag(kSceneFade); CCActionInterval a = (CCActionInterval)CCSequence.actions ( CCFadeIn.actionWithDuration(m_fDuration / 2), CCCallFunc.actionWithTarget(this, (base.hideOutShowIn)), CCFadeOut.actionWithDuration(m_fDuration / 2), CCCallFunc.actionWithTarget(this, (base.finish)) ); f.RunAction(a); }