void Start() { carSceneManagaer = FindObjectOfType <CarSceneManagaer>(); carController = FindObjectOfType <CarController>(); cardist = FindObjectOfType <CarController>().transform; fuelMaxAmt = UIManager.Instance.FuelTankSlider.value; startdist = cardist.position.x; }
//private InputManager inputManager; private void Start() { rb.transform.parent = null; fAccel = UIManager.Instance.ForceSlider.value; touchSensitivity = UIManager.Instance.Sensitivity.value; forceIncreaseMultiplier = UIManager.Instance.ForceIncreaseMultiplier.value; forceDecreaseMultiplier = UIManager.Instance.ForceDecreaseMultiplier.value; audioSource = GetComponent <AudioSource>(); carSceneManagaer = FindObjectOfType <CarSceneManagaer>(); //inputManager = InputManager.Instance; }
private void Start() { carSceneManagaer = FindObjectOfType <CarSceneManagaer>(); }