/// <summary> /// Creates the action with the inner action and the period in radians (default is 0.3) /// </summary> /// <param name="pAction"></param> /// <param name="fPeriod"></param> /// <returns></returns> public static CCEaseElastic actionWithAction(CCActionInterval pAction, float fPeriod) { CCEaseElastic pRet = new CCEaseElastic(); if (pRet != null) { if (pRet.initWithAction(pAction, fPeriod)) { //pRet->autorelease(); } else { //CC_SAFE_RELEASE_NULL(pRet); } } return pRet; }
/// <summary> /// creates the action /// </summary> /// <param name="pAction"></param> /// <returns></returns> public new static CCEaseElastic actionWithAction(CCActionInterval pAction) { CCEaseElastic pRet = new CCEaseElastic(); if (pRet != null) { if (pRet.initWithAction(pAction)) { //pRet->autorelease(); } else { //CC_SAFE_RELEASE_NULL(pRet); } } return(pRet); }