Esempio n. 1
0
        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;
            }
        }
Esempio n. 2
0
 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();
 }