public override void Update() { base.Update(); if (talkingPlayer != null && Input.MenuCancel.Pressed) { journal.Add(new Coroutine(journal.Leave())); Input.Dash.ConsumePress(); Input.Jump.ConsumePress(); talkingPlayer.StateMachine.State = Player.StNormal; talkingPlayer = null; } }
public void OnTalk(Player player) { journal = new CustomJournal(); journal.Pages = new List <CustomJournalPage>() { new SpeedChallengePage(journal, challenges) }; Scene.Add(journal); journal.Add(new Coroutine(journal.Enter())); talkingPlayer = player; player.StateMachine.State = Player.StDummy; Input.MenuCancel.ConsumePress(); Input.MenuCancel.ConsumeBuffer(); }