//Move textbox offscreen and bring back with new text public static void ChangeText(string message, bool maintext = true) { var stateinfo = Singleton.animator.GetCurrentAnimatorStateInfo(0); if (maintext) { Singleton.MainText = message; } if (stateinfo.IsName("OffScreen")) { ShowNewText(message); } else { HideTextBox(); Singleton.StopAllCoroutines(); Singleton.StartCoroutine(Singleton.WaitForTextToLeaveScreen(message)); } }