public void PlaySequence(StorySequence storySequence) { if (_isPlaying) { return; } _textBox.text = ""; _isPlaying = true; _currentSequence = storySequence; _duration = _currentSequence._nodes[_currentNode]._duration / _currentSequence._nodes[_currentNode]._text.Length; StartCoroutine("PrintText"); }
public void StartSequence(StorySequence storySequence) { _currentStorySequence = storySequence; if (!_playOnce && !_triggered) { if (_currentStorySequence._onlyPlayOnce) { _playOnce = true; } _currentNode = 0; _storyUI.SetActive(true); _triggered = true; Play(); Invoke("NextButtonActivate", 0.2f); } }
public SingleStorySeqenceFiller(string main, StorySequence sequence) { Main = main; StorySequence = sequence; }