public static CCAccelDeccelAmplitude actionWithAction(CCAction pAction, float duration)
        {
            CCAccelDeccelAmplitude cCAccelDeccelAmplitude = new CCAccelDeccelAmplitude();

            if (cCAccelDeccelAmplitude.initWithAction(pAction, duration))
            {
                return(cCAccelDeccelAmplitude);
            }
            return(null);
        }
        /// <summary>
        /// creates the action with an inner action that has the amplitude property, and a duration time
        /// </summary>
        public static CCAccelDeccelAmplitude actionWithAction(CCAction pAction, float duration)
        {
            CCAccelDeccelAmplitude pRet = new CCAccelDeccelAmplitude();

            if (pRet.initWithAction(pAction, duration))
            {
                return pRet;
            }

            return null;
        }
        /// <summary>
        /// creates the action with an inner action that has the amplitude property, and a duration time
        /// </summary>
        /// <param name="pAction"></param>
        /// <param name="duration"></param>
        /// <returns></returns>
        public static CCAccelDeccelAmplitude actionWithAction(CCAction pAction, float duration)
        {
            CCAccelDeccelAmplitude pRet = new CCAccelDeccelAmplitude();

            if (pRet != null)
            {
                if (pRet.initWithAction(pAction, duration))
                {
                    //pRet->autorelease();
                }
                else
                {
                    //CC_SAFE_DELETE(pRet);
                }
            }

            return pRet;
        }
 public override CCFiniteTimeAction reverse()
 {
     return(CCAccelDeccelAmplitude.actionWithAction(this.m_pOther.reverse(), this.m_fDuration));
 }
Exemplo n.º 5
0
 public override CCFiniteTimeAction Reverse()
 {
     return(CCAccelDeccelAmplitude.actionWithAction(m_pOther.Reverse(), Duration));
 }
 public static CCAccelDeccelAmplitude Create(CCAction pAction, float duration)
 {
     var pRet = new CCAccelDeccelAmplitude();
     pRet.InitWithAction(pAction, duration);
     return pRet;
 }