예제 #1
0
 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");
 }
예제 #2
0
    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);
        }
    }
예제 #3
0
 public SingleStorySeqenceFiller(string main, StorySequence sequence)
 {
     Main          = main;
     StorySequence = sequence;
 }