public override void onEnter() { base.onEnter(); CCLayerColor cCLayerColor = CCLayerColor.layerWithColor(this.m_tColor); this.m_pInScene.visible = false; this.addChild(cCLayerColor, 2, 2147483647); CCNode childByTag = base.getChildByTag(2147483647); CCFiniteTimeAction[] cCFiniteTimeActionArray = new CCFiniteTimeAction[] { CCFadeIn.actionWithDuration(this.m_fDuration / 2f), CCCallFunc.actionWithTarget(this, new SEL_CallFunc(this.hideOutShowIn)), CCFadeOut.actionWithDuration(this.m_fDuration / 2f), CCCallFunc.actionWithTarget(this, new SEL_CallFunc(this.finish)) }; childByTag.runAction((CCActionInterval)CCSequence.actions(cCFiniteTimeActionArray)); }
public override void onEnter() { base.onEnter(); CCLayerColor l = CCLayerColor.layerWithColor(m_tColor); m_pInScene.visible = false; addChild(l, 2, kSceneFade); CCNode 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); }