void Start()
 {
     carSceneManagaer = FindObjectOfType <CarSceneManagaer>();
     carController    = FindObjectOfType <CarController>();
     cardist          = FindObjectOfType <CarController>().transform;
     fuelMaxAmt       = UIManager.Instance.FuelTankSlider.value;
     startdist        = cardist.position.x;
 }
예제 #2
0
    //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;
    }
예제 #3
0
 private void Start()
 {
     carSceneManagaer = FindObjectOfType <CarSceneManagaer>();
 }