IEnumerator closure_box() { iTween.ScaleTo(StatusBox, Vector3.zero, 0.5f); yield return(new WaitForSeconds(0.6f)); StatusBox.transform.GetChild(0).gameObject.GetComponent <Text>().text = ""; StatusBox.SetActive(false); statusPanel.SetActive(false); }
IEnumerator show_status(string msg) { yield return(new WaitForSeconds(0.1f)); statusPanel.SetActive(true); StatusBox.transform.GetChild(0).gameObject.GetComponent <Text>().text = msg; StatusBox.SetActive(true); yield return(new WaitForSeconds(2f)); }