private void Start() { // set input base mode to HEX on start m_Input.baseMode.value = 2; inputBaseMode = InputBaseMode.HEX; // set output base mode to DEC_BYTE on start m_Output.baseMode.value = 1; outputBaseMode = OutputBaseMode.DEC; }
private void OnOutputBaseModeConfirm(int outputBaseValue) { switch (outputBaseValue) { case 0: outputBaseMode = OutputBaseMode.BIN; break; case 1: outputBaseMode = OutputBaseMode.DEC; break; case 2: outputBaseMode = OutputBaseMode.HEX; break; default: outputBaseMode = OutputBaseMode.DEC; break; } Debug.Log("outputBaseMode: " + outputBaseMode); }