public static void SetStringVariable(STRINGVAR variable, string value) { if (variable < STRINGVAR.MAX) { stringVariables[(int)variable] = value; } else { Debug.LogError("SetStringVariable: Trying to get MAX index!"); } }
public static string GetStringVariable(STRINGVAR variable) { if (variable < STRINGVAR.MAX) { return(stringVariables[(int)variable]); } else { Debug.LogError("GetStringVariable: Trying to get MAX index!"); return(""); } }
public static string StringVarToString(STRINGVAR variable) { return("STR" + ((int)(variable)).ToString()); }