private void PerformUndo() { if (m_undoStack.IsEmpty()) { // nothing to do return; } m_redoStack.Push(m_code); m_code = m_undoStack.Pop(); PerformUndoRedo(m_code); }
private void Update() { undoButton.interactable = !GameManager.Instance.Waiting && !_moves.IsEmpty(); }