private void SetActiveSubPuzzle(SubPuzzle newActiveSubPuzzle, bool deactivateOthers = true) { if (deactivateOthers) { foreach (var subPuzzle in subPuzzles) { subPuzzle.DeactivateSubPuzzle(); } } gameBoard.activeSubPuzzle = newActiveSubPuzzle; newActiveSubPuzzle.ActivateSubPuzzle(); }
public void SetActiveSubPuzzle(SubPuzzle newActiveSubPuzzle) { activeSubPuzzle = newActiveSubPuzzle; newActiveSubPuzzle.ActivateSubPuzzle(); }