private void instText(string text, bool start_text, bool end_text) { TextScript textbox = Instantiate(Resources.Load <GameObject>("Text/Textbox")).GetComponent <TextScript>(); textbox.em = this; textbox.text = text; textbox.text_begin = start_text; textbox.text_end = end_text; textbox.transform.SetParent(transform); textbox.GetComponent <RectTransform>().localPosition = new Vector3(0f, -575f, 0f); textbox.GetComponent <RectTransform>().localScale = new Vector3(1f, 1f, 1f); textbox.gameObject.tag = "Text"; }
private IEnumerator SkipTutorial() { yield return(new WaitForSeconds(textScript.GetComponent <Animation>().clip.length + 1f)); textScript.animator.SetBool("check", false); staty.Set_Data("on_off_shot", 0); Destroy(gameObject, 0.2f); NextScene(); }