//Jimmy Vegas Unity Tutorial //These scripts will create your car selection //global car using System.Collections; using System.Collections.Generic; using UnityEngine; public class GlobalCar : MonoBehaviour { public static int CarType; //1=Red, 2=Blue public GameObject TrackWindow; public void RedCar () { CarType = 1; TrackWindow.SetActive(true); } public void BlueCar () { CarType = 2; TrackWindow.SetActive(true); } } //car choice using System.Collections; using System.Collections.Generic; using UnityEngine; public class CarChoice : MonoBehaviour { //1=Red, 2=Blue public GameObject RedBody; public GameObject BlueBody; public int CarImport; void Start () { CarImport = GlobalCar.CarType; if (CarImport == 1) { RedBody.SetActive(true); } if (CarImport == 2) { BlueBody.SetActive(true); } } }