Beispiel #1
0
 public void onClick(InputAction.CallbackContext context)
 {
     if (context.started)
     {
         var startGame = dialogueScript.Submit();
         if (startGame)
         {
             mission = GetComponent <MissionComponent>();
             mission.StartMission();
         }
     }
 }
    public void Submit()
    {
        if (started)
        {
            bool canProceed = dialog.Submit();

            if (canProceed && !dialog.writing && (dialog.lineIndex == 6 || dialog.lineIndex == 5 || dialog.lineIndex == 3 || dialog.lineIndex == 1))
            {
                StartDialog();
                NextStage();
            }
            else if (canProceed)
            {
                StartDialog();
            }
        }
    }