void Start() { TaskUIObj.SetActive(false); //TaskComplete text hidden PlayerSlider.value = 0; TaskStrike.SetActive(false); DropIcon.SetActive(true); }
private void Evaluate() //Checks to see if task is completed { if (completed == false && (distance1 <= ZoneSize) && (distance2 <= ZoneSize) && (distance3 <= ZoneSize) && (distance4 <= ZoneSize)) //If all required objects are in the zone { TaskUIObj.SetActive(true); completed = true; Invoke("Hide", time); //Calls hide method PlayerSlider.value = PlayerSlider.value + 1; TaskStrike.SetActive(true); SoundManager.PlaySound("Point"); DropIcon.SetActive(false); } }