private IEnumerator TakeCEOJobCo()
        {
            isCoR = true;
            HideOptions();
            dial.ChangeFile(choices[0]);
            dial.AutoDial();
            fadeToBlack.SetBool("HasChosen", true);
            yield return(new WaitForSeconds(7.5f));

            SceneManager.LoadScene("End");
        }
 void Awake()
 {
     IM    = F <InputManager>();
     panel = G <CanvasGroup>(F("Dialogue Box"));
     ds    = F <DialogueScript>();
     if (LanguageSelect.isEnglish)
     {
         ds.ChangeFile(dialogueEnglish);
     }
     else
     {
         ds.ChangeFile(dialogueGerman);
     }
     movement = F <PlayerMovement>();
 }
        public void ProgressTutorial()
        {
            switch (seq.Sequence[sequencePos])
            {
            case SequenceElements.None:
                // nothing xD
                break;

            case SequenceElements.Dialogue:

                dial.ChangeFile(seq.File);
                dial.AutoDial();

                break;

            case SequenceElements.UIPrompt:

                seq.Prompt.SetActive(true);

                break;

            case SequenceElements.Function:

                seq.Function();

                break;

            default:
                break;
            }

            seq.RunCooldown(sequencePos);
        }
 public void StartCutscene()
 {
     transform.position = _positions[0];
     IsCutsceneRunning  = true;
     StartCoroutine(LerpToPosition());
     dial.ChangeFile(file);
     dial.AutoDial();
 }
 public void talk()
 {
     panel.alpha = 1;
     if (LanguageSelect.isEnglish)
     {
         ds.ChangeFile(dialogueEnglish);
     }
     else
     {
         ds.ChangeFile(dialogueGerman);
     }
     ds.Input();
     talking = true;
     if (Sign)
     {
         return;
     }
     movement.stopInput = talking;
     movement.enabled   = !talking;
 }
Beispiel #6
0
        IEnumerator StageChange(float Wait)
        {
            SMP.PlayNextTrack();

            IsCoR = true;

            ClearHarmfulItems();

            Player1.gameObject.GetComponent <PlayerController>().IsEnabled = false;
            Player2.gameObject.GetComponent <PlayerController>().IsEnabled = false;
            Player1InPos = false;
            Player2InPos = false;

            DS.ChangeFile(Files[SceneChangeNumber]);
            SceneChangeNumber++;

            yield return(new WaitForSeconds(1f));

            DS.InputPressed = true;

            yield return(new WaitForSeconds(4.5f));

            DS.InputPressed = true;

            yield return(new WaitForSeconds(4.5f));

            yield return(new WaitForSeconds(Wait));

            IsInCutscene     = false;
            FadeIntoCutscene = false;
            FadeIntoGame     = true;
            yield return(new WaitForSeconds(1.5f));

            FadeIntoGame = false;
            Player1.gameObject.GetComponent <PlayerController>().IsEnabled = true;
            Player2.gameObject.GetComponent <PlayerController>().IsEnabled = true;

            IsCoR = false;
        }
 public void Interact()
 {
     dial.ChangeFile(dialogueFile);
     dial.Input();
 }