예제 #1
0
        public override void OnEnter()
        {
            base.OnEnter();

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

            var effect = new CCLiquid(2, new CCGridSize(32, 24), 1, 20);

            var bg = bgNode;

            bg.RunActions(effect, new CCDelayTime(2), new CCStopGrid());
        }
예제 #2
0
        public override void OnEnter()
        {
            base.OnEnter();

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

            CCActionInterval effect = new CCLiquid(1, 20, new CCGridSize(32, 24), 2);

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

            CCNode bg = GetChildByTag(EffectAdvanceScene.kTagBackground);

            bg.RunAction(stopEffect);
        }
예제 #3
0
 public static CCActionInterval actionWithDuration(float t)
 {
     return(CCLiquid.actionWithWaves(4, 20, new ccGridSize(16, 12), t));
 }