Пример #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;
        }