public static new CCEaseBounceInOut actionWithAction(CCActionInterval pAction) { CCEaseBounceInOut cCEaseBounceInOut = new CCEaseBounceInOut(); if (cCEaseBounceInOut != null) { cCEaseBounceInOut.initWithAction(pAction); } return(cCEaseBounceInOut); }
public override CCObject copyWithZone(CCZone pZone) { CCEaseBounceInOut cCEaseBounceInOut = null; if (pZone == null || pZone.m_pCopyObject == null) { cCEaseBounceInOut = new CCEaseBounceInOut(); pZone = new CCZone(cCEaseBounceInOut); } else { cCEaseBounceInOut = pZone.m_pCopyObject as CCEaseBounceInOut; } cCEaseBounceInOut.initWithAction((CCActionInterval)this.m_pOther.copy()); return(cCEaseBounceInOut); }
/// <summary> /// creates the action /// </summary> /// <param name="pAction"></param> /// <returns></returns> public static new CCEaseBounceInOut actionWithAction(CCActionInterval pAction) { CCEaseBounceInOut pRet = new CCEaseBounceInOut(); if (pRet != null) { if (pRet.initWithAction(pAction)) { //pRet->autorelease(); } else { //CC_SAFE_RELEASE_NULL(pRet); } } return pRet; }
/// <summary> /// creates the action /// </summary> /// <param name="pAction"></param> /// <returns></returns> public new static CCEaseBounceInOut actionWithAction(CCActionInterval pAction) { CCEaseBounceInOut pRet = new CCEaseBounceInOut(); if (pRet != null) { if (pRet.initWithAction(pAction)) { //pRet->autorelease(); } else { //CC_SAFE_RELEASE_NULL(pRet); } } return(pRet); }
public override CCObject copyWithZone(CCZone pZone) { CCZone pNewZone = null; CCEaseBounceInOut pCopy = null; if (pZone != null && pZone.m_pCopyObject != null) { //in case of being called at sub class pCopy = pZone.m_pCopyObject as CCEaseBounceInOut; } else { pCopy = new CCEaseBounceInOut(); pZone = pNewZone = new CCZone(pCopy); } pCopy.initWithAction((CCActionInterval)(m_pOther.copy())); return pCopy; }
public override CCObject copyWithZone(CCZone pZone) { CCZone pNewZone = null; CCEaseBounceInOut pCopy = null; if (pZone != null && pZone.m_pCopyObject != null) { //in case of being called at sub class pCopy = pZone.m_pCopyObject as CCEaseBounceInOut; } else { pCopy = new CCEaseBounceInOut(); pZone = pNewZone = new CCZone(pCopy); } pCopy.initWithAction((CCActionInterval)(m_pOther.copy())); return(pCopy); }
public override void OnEnter() { base.OnEnter(); var s = CCDirector.SharedDirector.WinSize; var move = new CCMoveBy (3, new CCPoint(s.Width - 130, 0)); var move_back = move.Reverse(); var move_ease = new CCEaseBounceInOut((CCActionInterval) (move.Copy())); var move_ease_back = move_ease.Reverse(); var delay = new CCDelayTime (0.25f); var seq1 = CCSequence.FromActions(move, delay, move_back, (CCFiniteTimeAction) delay.Copy()); var seq2 = CCSequence.FromActions(move_ease, (CCFiniteTimeAction) delay.Copy(), move_ease_back, (CCFiniteTimeAction) delay.Copy()); positionForTwo(); m_grossini.RunAction(new CCRepeatForever (seq1)); m_tamara.RunAction(new CCRepeatForever (seq2)); }