Beispiel #1
0
    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;
    }
Beispiel #2
0
    private void OnInputBaseModeConfirm(int inputBaseValue)
    {
        switch (inputBaseValue)
        {
        case 0: inputBaseMode = InputBaseMode.BIN; break;

        case 1: inputBaseMode = InputBaseMode.DEC; break;

        case 2: inputBaseMode = InputBaseMode.HEX; break;

        default: inputBaseMode = InputBaseMode.DEC; break;
        }
        Debug.Log("inputBaseMode:" + inputBaseMode);
    }