private void CompleteWord(string _text) { characterCount += _text.Length; _position += _text.Length; correct_text.text += _text; input.text = ""; int next_line_position = TextChanger.Check_next_line(text_field_text); if (next_line_position > 0 && correct_text.text.Length >= next_line_position - 1) { _position -= correct_text.text.Length; currentText = TextChanger.DeleteLine(currentText, correct_text.text.Length); correct_text.text = ""; Set_text_field(currentText); } if (_position >= text_field.text.Length - 1) { CompleteTextEffect(); TypingEnd(); } else { CompleteWordEffect(); } }