Skip to content

Commit b962ac8

Browse files
committed
TPScript: Fixed Combine
1 parent 9ea91dc commit b962ac8

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Source/MonoBehaviours/TPScript.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using System.Collections;
33
using System.Collections.Generic;
44
using System.Linq;
5+
using System.Text;
56
using System.Text.RegularExpressions;
67
using KeepCoding.Internal;
78
using UnityEngine;
@@ -372,7 +373,14 @@ protected IEnumerable<WaitForSecondsRealtime> OnInteractSequence(KMSelectable[]
372373

373374
private static bool IsExcluded<T>(T item) => item is IEnumerable<char> || item is KMSelectable[];
374375

375-
private static string Combine(in string main, params object[] toAppend) => main + ConvertAll(toAppend, o => $" {o}");
376+
private static string Combine(in string main, params object[] toAppend)
377+
{
378+
var builder = new StringBuilder(main);
379+
380+
toAppend.ForEach(o => builder.Append($" {o}"));
381+
382+
return builder.ToString();
383+
}
376384

377385
private IEnumerator ToggleColorblind()
378386
{

0 commit comments

Comments
 (0)