Exemplo n.º 1
0
 protected override void onTrigger(GameObject interactor)
 {
     if (ClearAllSequence)
     {
         TextboxManager.ClearAllSequences();
     }
     TextboxManager.SetSoundType(soundType);
     if (ClearAllSequence)
     {
         TextboxManager.ClearAllSequences();
     }
     TextboxManager.StartSequence(TextboxString, null, Skippable);
 }
Exemplo n.º 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);
 }
Exemplo n.º 3
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);
    }