private void OnCollisionEnter(Collision collision) { if (collision.gameObject.tag == "PlayerUnit") { if (!collision.collider.gameObject.GetComponent <Player_Movement>().isInSpline) { playerV2.StartFollow(); } } }