Exemple #1
0
 protected override void onTrigger(GameObject interactor)
 {
     if (ClearAllSequence)
     {
         TextboxManager.ClearAllSequences();
     }
     TextboxManager.SetSoundType(soundType);
     if (ClearAllSequence)
     {
         TextboxManager.ClearAllSequences();
     }
     TextboxManager.StartSequence(TextboxString, null, Skippable);
 }
Exemple #2
0
 protected virtual void triggerText()
 {
     TriggerUsed     = true;
     currentInterval = interval;
     if (ClearAllSequence)
     {
         TextboxManager.ClearAllSequences();
     }
     TextboxManager.SetSoundType(soundType);
     if (ClearAllSequence)
     {
         TextboxManager.ClearAllSequences();
     }
     TextboxManager.StartSequence(value, null, Skippable);
 }
Exemple #3
0
 void Update()
 {
     if (SingleSequence)
     {
         if (toSkip == null || toSkip.finished)
         {
             Destroy(gameObject);
         }
         else if (Input.GetKey(KeyCode.Escape))
         {
             toSkip.closeSequence();
         }
     }
     else if (Input.GetKey(KeyCode.Escape))
     {
         TextboxManager.ClearAllSequences();
         SceneManager.LoadScene(SceneName);
         TextboxManager.ClearAllSequences();
     }
 }
Exemple #4
0
    protected override void onTrigger(GameObject interactor)
    {
        Debug.Log("On Trigger");
        if (ClearAllSequence)
        {
            TextboxManager.ClearAllSequences();
        }
        TextboxManager.SetSoundType(soundType);
        if (ClearAllSequence)
        {
            TextboxManager.ClearAllSequences();
        }
        string txt = TextboxString;

        if (textFilePath.Length > 0)
        {
            TextAsset mytxtData = (TextAsset)Resources.Load("MyText");
            txt = mytxtData.text;
        }
        TextboxManager.StartSequence(txt, null, Skippable);
    }