public static void Play_Start() { OvermapHandler.StopOvermapRunning(); UIBlack.Show(); Character playerCharacter = GameData.GetCharacter(Character.Type.Player); Dialogue dialogue = Dialogue.GetInstance(); dialogue.SetDialogueActions(new List <Action>() { () => { dialogue.Show(); dialogue.ShowLeftCharacter(GameAssets.i.s_PlayerDialogueSprite, false); dialogue.ShowLeftText("What happened?"); dialogue.ShowLeftCharacterName("???"); dialogue.HideRightCharacter(); dialogue.HideRightText(); dialogue.HideRightCharacterName(); }, () => { dialogue.ShowLeftText("What was I doing?"); }, () => { dialogue.ShowLeftText("Oh right, I was going to defeat the Evil Monster in the Evil Castle"); }, () => { dialogue.ShowLeftText("What was my name again?"); }, () => { dialogue.Hide(); Window_KeyContinue.Hide_Static(); Window_PickName.ShowAvailableNames((string selectedName) => { playerCharacter.name = selectedName; dialogue.Show(); dialogue.PlayNextAction(); }); }, () => { dialogue.ShowLeftText("Oh that's right, I'm " + playerCharacter.name); dialogue.ShowLeftCharacterName(playerCharacter.name); }, () => { dialogue.ShowLeftText("Alright let's go!"); }, () => { dialogue.Hide(); UIBlack.Hide(); OvermapHandler.StartOvermapRunning(); //GameData.state = GameData.State.GoingToTownCenter; }, }, true); }
private void Awake() { instance = this; }