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);
 }
Esempio n. 3
0
        public void AppendBoldText(string s)
        {
            int ss = AlertTxt.TextLength;

            AlertTxt.AppendText(s);
            int sl = AlertTxt.SelectionStart - ss + 1;

            Font bold = new Font(AlertTxt.Font, FontStyle.Bold);

            AlertTxt.Select(ss, sl);
            AlertTxt.SelectionFont = bold;
        }
    // 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);
    }