void Update() { if (Input.GetKeyDown(KeyCode.L)) { objLoader.SelectFile(); CurrentState.FaceIndex = 0; CurrentState.IsCalibrating = false; CurrentState.IsModelVisible = true; syncUIFromState(); } if (Input.GetKeyDown(KeyCode.Comma)) { CurrentState.FaceIndex--; syncUIFromState(); } if (Input.GetKeyDown(KeyCode.Period)) { CurrentState.FaceIndex++; syncUIFromState(); } if (Input.GetKeyDown(KeyCode.T)) { CurrentState.IsCalibrating = !CurrentState.IsCalibrating; syncUIFromState(); } if (Input.GetKeyDown(KeyCode.Tab)) { CurrentState.IsModelVisible = !CurrentState.IsModelVisible; syncUIFromState(); } if (Input.GetKeyDown(KeyCode.R) && CurrentState.IsCalibrating) { Persistance.Instance.Reset(); } }