Setup() protected method

protected Setup ( Vector3 start, Array targets, Array callbackDelegates, OnPathDelegate callback ) : void
start Vector3
targets Array
callbackDelegates Array
callback OnPathDelegate
return void
Ejemplo n.º 1
0
        public static MultiTargetPath Construct(Vector3 start, Vector3[] targets, OnPathDelegate[] callbackDelegates, OnPathDelegate callback = null)
        {
            MultiTargetPath path = PathPool.GetPath <MultiTargetPath>();

            path.Setup(start, targets, callbackDelegates, callback);
            return(path);
        }
Ejemplo n.º 2
0
        public static MultiTargetPath Construct(Vector3 start, Vector3[] targets, OnPathDelegate[] callbackDelegates, [Optional, DefaultParameterValue(null)] OnPathDelegate callback)
        {
            MultiTargetPath path = PathPool.GetPath <MultiTargetPath>();

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