public void ClickToRegister() { animator = GameObject.Find("/Login").GetComponent<Animator>(); Connect connect = new Connect(); if (connect.isConnect()) { //isLogin = false; ar.pushToList("ShowRegister"); animator.Play("ShowRegister"); } else { hint.text = "請檢查網路連線"; Debug.Log(hint.text); } }
public void sendComment() { if (inputText.text == "") { errorText.text = "請輸入評論"; } else { Connect connect = new Connect(); if (!connect.isConnect()) { errorText.text = "請檢察網路"; } else { StartCoroutine(sending()); } } }