示例#1
0
        public static CCFollow actionWithTarget(CCNode followedNode, CCRect rect)
        {
            CCFollow follow = new CCFollow();

            if ((follow != null) && follow.initWithTarget(followedNode, rect))
            {
                return(follow);
            }
            return(null);
        }
示例#2
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);
        }
示例#3
0
        /** creates the action with no boundary set */
        public static CCFollow actionWithTarget(CCNode followedNode)
        {
            CCFollow ret = new CCFollow();

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

            return null;
        }