protected override void onTrigger(GameObject interactor) { if (ClearAllSequence) { TextboxManager.ClearAllSequences(); } TextboxManager.SetSoundType(soundType); if (ClearAllSequence) { TextboxManager.ClearAllSequences(); } TextboxManager.StartSequence(TextboxString, null, Skippable); }
protected virtual void triggerText() { TriggerUsed = true; currentInterval = interval; if (ClearAllSequence) { TextboxManager.ClearAllSequences(); } TextboxManager.SetSoundType(soundType); if (ClearAllSequence) { TextboxManager.ClearAllSequences(); } TextboxManager.StartSequence(value, null, Skippable); }
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); }