private void Start() { boost = maxBoost; boostBar.SetMaxBoost(maxBoost); Cursor.lockState = CursorLockMode.Locked; }
// Start is called before the first frame update void Start() { my_camera = Camera.main.GetComponent <cameraControl>(); wheel = transform.GetChild(0); my_camera.my_owner_is(transform); boostBar.SetMaxBoost((int)_nitro); }
// Start is called before the first frame update void Start() { boostAmount = boostAmountMax; boostBar.SetMaxBoost(boostAmountMax); }