Thats Unity3D js script error, on pc it work fine, but if I try to switch platform to android…
var RelativeWaypointPosition : Vector3 = transform.InverseTransformPoint( Vector3(
waypoints[currentWaypoint].position.x,
transform.position.y,
waypoints[currentWaypoint].position.z ) );
Check this thread for a similar problem – and possible ways of fixing yours.
In short, your
waypointsvariable is probably just ofArraytype, when it should actually beTransform[]. So adjust the assignments accordingly.