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

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

            base.copyWithZone(tmpZone);

            ret.initWithAction(m_pOther.copy() as CCFiniteTimeAction);

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

            ret.initWithAction(action);

            return(ret);
        }
예제 #3
0
 public override CCFiniteTimeAction reverse()
 {
     return(CCReverseTime.actionWithAction(this));
 }