public void NoStatusBtn() { AlertBox.SetActive(false); AlertTxt.SetActive(false); YesBtn.SetActive(false); NoBtn.SetActive(false); }
void Start() { AlertBox.SetActive(false); AlertTxt.SetActive(false); YesBtn.SetActive(false); NoBtn.SetActive(false); }
// void Update(){ // //Invoke("YesDelBtn", 2); // AlertBox.SetActive(false); // YesBtn.SetActive(false); // NoBtn.SetActive(false); // } public void UpdateSchoolBtn() { if (SchoolID.text == "") { msgTxt.text = "<color=red>Please input a School ID</color>"; Debug.Log("<color=red>" + msgTxt.text + "</color>"); } else { AlertBox.SetActive(true); AlertTxt.SetActive(true); YesBtn.SetActive(true); NoBtn.SetActive(true); } }
public void YesStatusBtn() { if (schoolStatus.options[schoolStatus.value].text == "Deactivate") { StartCoroutine(DeactivateSchool()); } else { StartCoroutine(ActivateSchool()); } AlertBox.SetActive(false); AlertTxt.SetActive(false); YesBtn.SetActive(false); NoBtn.SetActive(false); }