So I have the string format split into two arrays:
String:
{ "{0}", "hit", "{1}" }
Values:
{ "Player", "Enemy" }
is there a way to format this ? Can I still use String.Format?
EDIT:
I believe that I have not described the issue well:
The expected result would be new array or the first array edited like:
{ "Player" , "hit" , "Enemy" }
Please keep in mind that value "Enemy" can also be "Enemy 1" or "Enemy Strong" etc.
"{0} hit {1}"? You can join the first array using a space to create such a format string, if that's what you mean...string text = "{ \"{0}\", \"hit\", \"{1}\" }"?