コード例 #1
0
        /// <summary>
        /// creates the action with a set boundary
        /// </summary>
        public static CCFollow actionWithTarget(CCNode followedNode, CCRect rect)
        {
            CCFollow ret = new CCFollow();

            if (ret != null && ret.initWithTarget(followedNode, rect))
            {
                return(ret);
            }

            return(null);
        }
コード例 #2
0
        public override CCObject copyWithZone(CCZone zone)
        {
            CCZone   tempZone = zone;
            CCFollow ret      = null;

            if (tempZone != null && tempZone.m_pCopyObject != null)
            {
                ret = (CCFollow)tempZone.m_pCopyObject;
            }
            else
            {
                ret      = new CCFollow();
                tempZone = new CCZone(ret);
            }

            base.copyWithZone(tempZone);
            ret.m_nTag = m_nTag;

            return(ret);
        }