public override void Update() { //If you can go back, check for input if (DBubble.CurParagraphIndex > 0) { //Go back if (Input.GetKeyDown(DialogueBubble.PreviousParagraphButton) == true) { OnEnd(); HasStarted = false; //Add scroll routine for going down to this offset DBubble.AddMessageRoutine(new ScrollRoutine(DBubble, DBubble.TextYOffset)); //Add an input routine DBubble.AddMessageRoutine(new InputRoutine(DBubble, PreviousButton, ProgressButton)); //Add scroll routine for going up DBubble.AddMessageRoutine(new ScrollRoutine(DBubble, DBubble.TextYOffset + DBubble.YMoveAmount)); return; } } if (Input.GetKeyDown(ProgressButton) == true) { Complete = true; } }