private void InputKey() { if (Input.GetKeyDown(KeyCode.Space)) { if ((int)calibStats % 2 == 0) { CalibO2A(); } } if (Input.GetKeyDown(KeyCode.Return)) { if ((int)calibStats % 2 == 1) { CalibO2A(); } } if (InputKey.GetKeyDown(KeyCode.Esc)) { if (calibStats == CalibStats.start) { calibStats = CalibStats.end; endCalibAxi = true; } } }