IEnumerator HouseAssault2Routine() { yield return(MessageManager.ShowMessage(Global.blackName, "We don't have to do this. Just tell us where it is.")); Global.ancientAppears = true; Transform ancient = transform.GetChild(1).GetChild(0); yield return(ancient.GetComponent <Manipulator>().MoveTo(new Vector2(1.05f, -19.44f), 1.0f)); yield return(MessageManager.ShowMessage(Global.ancientName, "Come on, " + Global.playerName + ", we have to go.")); yield return(MessageManager.ShowMessage(Global.playerName, Global.ancientName + ", you have to help my father! They have my mom!")); yield return(MessageManager.ShowMessage(Global.ancientName, "Let's go, I said!")); yield return(MessageManager.ShowMessage(Global.playerName, "No...!")); Global.anotherBlack = true; yield return(MessageManager.ShowMessage(Global.blackName, "It's not here.")); yield return(MessageManager.ShowMessage(Global.blackName, "Get rid of them.")); yield return(MessageManager.ShowMessage(Global.playerName, "NO! DAD!")); yield return(MessageManager.ShowMessage(Global.ancientName, "I am sorry, my child, I have to keep you safe.")); ancient.GetComponent <AudioSource>().Play(); ScreenHider.HideScreen(); yield return(new WaitForSeconds(1f)); GetComponentInChildren <AudioSource>().Play(); yield return(new WaitForSeconds(3f)); Player.Teleport("dream", 0f, 0f); }
void Awake() { instance = this; sp = GetComponent <SpriteRenderer>(); }