I’m trying to use Array.Shift but I get this error:
MissingMethodException: Method not found: ‘UnityEngine.GameObject.Shift’
var wps: GameObject[];
var currentWP: int;
var nPoint : Vector3;
var path : Array = new Array();
nPoint = wps[currentWP].transform.position;
currentWP = wps.Shift();
path.Add(currentWP);
Antone know why or how to fix it?