protected void Move() { //Vector3 moveVect = transform.forward * _moveSpeed * Time.deltaTime ; //mVertical is +1 or -1 //mRigidBody.MovePosition(mRigidBody.position + moveVect); float step = _moveSpeed * Time.deltaTime; // calculate distance to move transform.position = Vector3.MoveTowards(transform.position, target.transform.position, step); if (Vector3.Distance(transform.position, target.transform.position) < 2f) { tankManager.FriendlyReachedTurret(this); Object.Destroy(this.gameObject); } }