diff --git a/Assets/Fungus/FungusScript/Scripts/StringFormatter.cs b/Assets/Fungus/FungusScript/Scripts/StringFormatter.cs new file mode 100644 index 00000000..171d413b --- /dev/null +++ b/Assets/Fungus/FungusScript/Scripts/StringFormatter.cs @@ -0,0 +1,52 @@ +using UnityEngine; +using UnityEditor; +using System.IO; +using System.Collections; +using System.Text; +using System; + +namespace Fungus +{ + public class StringFormatter + { + public static string[] FormatEnumNames(Enum e, string firstLabel) + { + string[] enumLabels = Enum.GetNames(e.GetType()); + enumLabels[0] = firstLabel; + for (int i=0; i