// Start is called before the first frame update void Start() { volumeSlide.value = PlayerPrefsControler.GetVolume(); difficultySlide.value = PlayerPrefsControler.GetDifficulty(); AudioPlayer = FindObjectOfType <AudioPlayer>(); }
// Update is called once per frame void Update() { lives = baseLives - PlayerPrefsControler.GetDifficulty(); livesText = GetComponent <Text>(); UpdateDisplay(); }