/*This script changes the position of the player */ public void OnTriggerEnter(Collider other) { if (other.GetComponent <Collider>().tag == "Player") { RaceController.ChangePosition(gameObject, other.gameObject); } }