// Use this for initialization void Start() { bBar = GameObject.FindGameObjectWithTag("canvas"); bScript = bBar.GetComponent<sBoost>(); power = 15; current = 0; }
void Start() { rb = car.GetComponent<Rigidbody>(); bBar = GameObject.FindGameObjectWithTag("canvas"); bScript = bBar.GetComponent<sBoost>(); increaseSpeed = 1; turnSpeed = 5.0f; }