示例#1
0
 public CCStopGridState (CCStopGrid action, CCNode target)
     : base (action, target)
 {   
     CCGridBase pGrid = Target.Grid;
     if (pGrid != null && pGrid.Active)
     {
         pGrid.Active = false;
     }
 }
示例#2
0
        public CCStopGridState(CCStopGrid action, CCNodeGrid target)
            : base(action, target)
        {
            CCGridBase pGrid = target.Grid;

            if (pGrid != null && pGrid.Active)
            {
                pGrid.Active = false;
            }
        }
示例#3
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);
        }
示例#4
0
 public static new CCStopGrid Create()
 {
     var pAction = new CCStopGrid();
     return pAction;
 }