public void ExitOptions() { if (Change) { PopUps pop= GameObject.FindGameObjectWithTag("OptionsManager").GetComponent<PopUps>(); pop.PopUp("Save current changes?"); } else{ optionsCanva.gameObject.SetActive(false); pauseCanva.enabled= true; } }
public void Confirm() { PopUps pop = GameObject.FindGameObjectWithTag(ManagerName).GetComponent <PopUps>(); pop.PopUp(Text); }