private void Start() { menuManager = CarMenuManager.menuManagerInstance; playerCarImage.GetComponent <Image>(); currentCarIndex = Random.Range(0, menuManager.cars.Length); playerCarImage.material = menuManager.cars[currentCarIndex]; }
private void Awake() { menuManagerInstance = this; }