Example #1
0
        public override void onEnter()
        {
            base.onEnter();

            //CCDirector::sharedDirector()->setProjection(CCDirectorProjection2D);

            CCActionInterval effect = CCLiquid.actionWithWaves(1, 20, new ccGridSize(32, 24), 2);

            CCActionInterval stopEffect = (CCActionInterval)(CCSequence.actions(
                                                                 effect,
                                                                 CCDelayTime.actionWithDuration(2),
                                                                 CCStopGrid.action()
                                                                 //					 [DelayTime::actionWithDuration:2],
                                                                 //					 [[effect copy] autorelease],
                                                                 ));

            CCNode bg = getChildByTag(EffectAdvanceScene.kTagBackground);

            bg.runAction(stopEffect);
        }