// Update is called once per frame private void Update() { if (Time.time > 1 && goAuto) { goAuto = false; AddAutoSave("<Début>"); } cancelButton.interactable = m_projects.Count > 0 == m_idx > 0; redoButton.interactable = m_projects.Count > 0 && m_idx < m_projects.Count - 1; if (InputFunctions.CTRL()) { // CANCEL if (Input.GetKeyDown(KeyCode.Z)) { Cancel(); } // REDO else if (Input.GetKeyDown(KeyCode.Y)) { Redo(); } //if(operations.Count > 0) //{ // Operation currentOperation = operations.Last(); // currentOperation.Cancel(); // operations.Remove(currentOperation); //} } }