void Start() { body = GetComponent <Rigidbody2D>(); pathToFollow = Path.GetComponent <CustomPath>(); target = pathToFollow.GetFirstNode(); }