private void Start() { ProgressBarUi.SetActive(false); WrldProgressBarUi.SetActive(false); GameObject.FindGameObjectWithTag("GameController").GetComponent <ProgressBar>().hasEnteredCaptureZone = false; }
private void OnTriggerExit(Collider other) { if (other.tag == "Player") { GameObject.FindGameObjectWithTag("GameController").GetComponent <ProgressBar>().hasEnteredCaptureZone = false; } ProgressBarUi.SetActive(false); WrldProgressBarUi.SetActive(false); }