public static new CCEaseBackInOut actionWithAction(CCActionInterval pAction) { CCEaseBackInOut cCEaseBackInOut = new CCEaseBackInOut(); if (cCEaseBackInOut != null) { cCEaseBackInOut.initWithAction(pAction); } return(cCEaseBackInOut); }
public override CCObject copyWithZone(CCZone pZone) { CCEaseBackInOut cCEaseBackInOut = null; if (pZone == null || pZone.m_pCopyObject == null) { cCEaseBackInOut = new CCEaseBackInOut(); pZone = new CCZone(cCEaseBackInOut); } else { cCEaseBackInOut = pZone.m_pCopyObject as CCEaseBackInOut; } cCEaseBackInOut.initWithAction((CCActionInterval)this.m_pOther.copy()); return(cCEaseBackInOut); }
/// <summary> /// creates the action /// </summary> /// <param name="pAction"></param> /// <returns></returns> public static new CCEaseBackInOut actionWithAction(CCActionInterval pAction) { CCEaseBackInOut pRet = new CCEaseBackInOut(); 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 CCEaseBackInOut actionWithAction(CCActionInterval pAction) { CCEaseBackInOut pRet = new CCEaseBackInOut(); 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; CCEaseBackInOut pCopy = null; if (pZone != null && pZone.m_pCopyObject != null) { //in case of being called at sub class pCopy = pZone.m_pCopyObject as CCEaseBackInOut; } else { pCopy = new CCEaseBackInOut(); pZone = pNewZone = new CCZone(pCopy); } pCopy.initWithAction((CCActionInterval)(m_pOther.copy())); return pCopy; }
public override CCObject copyWithZone(CCZone pZone) { CCZone pNewZone = null; CCEaseBackInOut pCopy = null; if (pZone != null && pZone.m_pCopyObject != null) { //in case of being called at sub class pCopy = pZone.m_pCopyObject as CCEaseBackInOut; } else { pCopy = new CCEaseBackInOut(); 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 CCEaseBackInOut((CCActionInterval) (move.Copy())); var move_ease_back = move_ease.Reverse() as CCActionInterval; 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)); }