void OnCollisionEnter(Collision collision) { if (ft.GetTarget() != null) { goTarget = ft.GetTarget(); } }
private void Update() { transform.position = Vector3.Lerp(transform.position, findTarget.GetTarget().position, Time.deltaTime * lerpSpeed); }