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