public void SetLabelActiveButterflyFish(string species) { if (gameDataController.ButterflyFishIsUnlocked()) { SetLabelActive(species); } else { SetLabelActive("Locked"); } }
private void Start() { gameDataController = FindObjectOfType <GameDataController>(); slider = GetComponent <Slider>(); sliderFill = slider.fillRect.GetComponent <Image>(); countText = GetComponentInChildren <Text>(); if (isMoorishIdolSlider && gameDataController.MoorishIdolIsUnlocked()) { isUnlocked = true; slider.value = 30; } if (isButterflyFishSlider && gameDataController.ButterflyFishIsUnlocked()) { isUnlocked = true; slider.value = 30; } if (isWhitetipReefSharkSlider && gameDataController.WhitetipReefSharkIsUnlocked()) { isUnlocked = true; slider.value = 4; } }