Example #1
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);
        }
Example #2
0
 public CCLiquid (CCLiquid liquid) 
 {
     InitWithWaves(liquid.m_nWaves, liquid.m_fAmplitude, liquid.m_sGridSize, liquid.m_fDuration);
 }
Example #3
0
 public CCLiquid(CCLiquid liquid)
 {
     InitWithDuratuon(liquid.m_fDuration, liquid.m_sGridSize, liquid.m_nWaves, liquid.m_fAmplitude);
 }
Example #4
0
 public CCLiquid(CCLiquid liquid)
 {
     InitWithWaves(liquid.m_nWaves, liquid.m_fAmplitude, liquid.m_sGridSize, liquid.m_fDuration);
 }
Example #5
0
 public CCLiquid(CCLiquid liquid)
 {
     InitWithDuratuon(liquid.m_fDuration, liquid.m_sGridSize, liquid.m_nWaves, liquid.m_fAmplitude);
 }