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