Array Shift error

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?

This happens because the 'Shift' method is for Unity's 'Array' class, not builtin arrays. Built in arrays don't have that functionality. There are, of course, many other data structures which do- have a look at arraylists or lists.