예제 #1
0
        public override CCObject copyWithZone(CCZone zone)
        {
            CCZone          tmpZone = zone;
            CCRepeatForever ret     = null;

            if (tmpZone != null && tmpZone.m_pCopyObject != null)
            {
                ret = tmpZone.m_pCopyObject as CCRepeatForever;
                if (ret == null)
                {
                    return(null);
                }
            }
            else
            {
                ret     = new CCRepeatForever();
                tmpZone = new CCZone(ret);
            }

            base.copyWithZone(tmpZone);

            CCActionInterval param = m_pInnerAction.copy() as CCActionInterval;

            if (param == null)
            {
                return(null);
            }
            ret.initWithAction(param);

            return(ret);
        }
예제 #2
0
        public static CCRepeatForever actionWithAction(CCActionInterval action)
        {
            CCRepeatForever ret = new CCRepeatForever();

            ret.initWithAction(action);

            return(ret);
        }
예제 #3
0
 public override CCFiniteTimeAction reverse()
 {
     return(CCRepeatForever.actionWithAction(m_pInnerAction.reverse() as CCActionInterval));
 }