public static ClientStateTypes Str2CST(string cstStr) { ClientStateTypes res = ClientStateTypes.CST_NULL; switch (cstStr) { case ("count"): res = ClientStateTypes.CST_COUNT; break; case ("mulligan"): res = ClientStateTypes.CST_MULLIGAN; break; default: Debug.LogError("Error translating CLientStateType to string."); break; } return(res); }
public static string CST2str(ClientStateTypes cst) { string res = null; switch (cst) { case (ClientStateTypes.CST_COUNT): res = "count"; break; case (ClientStateTypes.CST_MULLIGAN): res = "mulligan"; break; default: Debug.LogError("Error translating CLientStateType to string."); break; } return(res); }