Setup() protected method

protected Setup ( Vector3 start, OnPathDelegate callback ) : void
start Vector3
callback OnPathDelegate
return void
示例#1
0
        public static FloodPath Construct(Vector3 start, OnPathDelegate callback = null)
        {
            FloodPath path = PathPool.GetPath <FloodPath>();

            path.Setup(start, callback);
            return(path);
        }
示例#2
0
        public static FloodPath Construct(Vector3 start, [Optional, DefaultParameterValue(null)] OnPathDelegate callback)
        {
            FloodPath path = PathPool.GetPath <FloodPath>();

            path.Setup(start, callback);
            return(path);
        }
示例#3
0
        public static FloodPath Construct(Vector3 start, OnPathDelegate callback = null)
        {
            FloodPath p = PathPool <FloodPath> .GetPath();

            p.Setup(start, callback);
            return(p);
        }
示例#4
0
        public static FloodPath Construct(GraphNode start, OnPathDelegate callback = null)
        {
            if (start == null)
            {
                throw new ArgumentNullException("start");
            }
            FloodPath path = PathPool <FloodPath> .GetPath();

            path.Setup(start, callback);
            return(path);
        }
示例#5
0
        public static FloodPath Construct(GraphNode start, [Optional, DefaultParameterValue(null)] OnPathDelegate callback)
        {
            if (start == null)
            {
                throw new ArgumentNullException("start");
            }
            FloodPath path = PathPool.GetPath <FloodPath>();

            path.Setup(start, callback);
            return(path);
        }