コード例 #1
0
        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");
        }
コード例 #2
0
 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>();
 }
コード例 #3
0
        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);
        }
コード例 #4
0
 public void StartCutscene()
 {
     transform.position = _positions[0];
     IsCutsceneRunning  = true;
     StartCoroutine(LerpToPosition());
     dial.ChangeFile(file);
     dial.AutoDial();
 }
コード例 #5
0
 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;
 }
コード例 #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;
        }
コード例 #7
0
 public void Interact()
 {
     dial.ChangeFile(dialogueFile);
     dial.Input();
 }