Пример #1
0
        private void LoadNextText()
        {
            _current = "";
            string _temp = _text[_index];

            while (_temp != "\\break/")
            {
                if (_temp.Equals(""))
                {
                    _current += "\n";
                }
                else if (_temp.EndsWith(" \\Input/"))
                {
                    _current += CustomInput.GetText(_temp);
                }
                else
                {
                    _current += _temp;
                }
                _index++;
                if (_index < _text.Count)
                {
                    _temp = _text[_index];
                }
            }
            if (_index < _text.Count - 1)
            {
                _index++;
                _break = true;
            }
            _textObject.text = _current;
        }