// Start is called before the first frame update void Start() { gameController = FindObjectOfType <GameController>(); planeController = FindObjectOfType <PlaneController>(); nextWP = planeController.FindNearest(transform); }