public CCStopGridState (CCStopGrid action, CCNode target) : base (action, target) { CCGridBase pGrid = Target.Grid; if (pGrid != null && pGrid.Active) { pGrid.Active = false; } }
public CCStopGridState(CCStopGrid action, CCNodeGrid target) : base(action, target) { CCGridBase pGrid = target.Grid; if (pGrid != null && pGrid.Active) { pGrid.Active = false; } }
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); }
public static new CCStopGrid Create() { var pAction = new CCStopGrid(); return pAction; }