Assets/Watson/Scripts/Utilities/Utility.cs
/// <summary>
/// Strips the prepending ! statment from string.
/// </summary>
/// <returns>The string.</returns>
/// <param name="s">S.</param>
Strips the prepending . statment from string.
Strips the prepending . statment from string .
public static string StripString(string s)
        {
            string[] delimiter = new string[] {"!", "! "};
            string[] newString = s.Split(delimiter, System.StringSplitOptions.None);
            if(newString.Length > 1)
            {
                return newString[1];
            }
            else
            {
                return s;
            }
        }
public static string StripString ( string s ) { string [ ] delimiter = new string [ ] { " " , " " } ; string [ ] newString = s . Split ( delimiter , System . StringSplitOptions . None ) ; if ( newString . Length > 1 ) { return newString [ 1 ] ; } else { return s ; } }
Strips the prepending !
Strips the prepending !
None
s
string
None