IEnumerator waitForAnim(Animation anim) { anim.Play("UIBegin"); currentConversation = JSONMovieParser.createConversation(textPathName); Texture2D texture = Resources.Load<Texture2D>(currentConversation.getImg()); image.GetComponent<Image>().sprite = Sprite.Create(texture, new Rect(0, 0, texture.width, texture.height), new Vector2(.5f,.5f), 100); currentMessage = currentConversation.getNext(); do { yield return null; } while (anim.isPlaying); nameGUI.text = currentConversation.getName(); image.enabled = true; isTalking = true; StartCoroutine (startScrolling()); }