Esempio n. 1
0
 void UpdateCurInstruction()
 {
     curInstruction?.GetCodeBlock()?.ToggleOutline(false);
     curInstruction = lastInstructionReturn?.GetNextInstruction();
     if (curInstruction == null)
     {
         curInstruction = instructionStack.Empty() ?
                          null :
                          instructionStack.Pop();
     }
     if (curInstruction != null)
     {
         curInstruction.GetCodeBlock().ToggleOutline(true);
     }
     else
     {
         ExerciseManager.instance.AlertCodeFinished();
         ConsoleManager.instance.AddFinishLine();
     }
 }
Esempio n. 2
0
 void UpdateCurInstruction()
 {
     curInstruction?.GetCodeBlock()?.ToggleOutline(false);
     curInstruction = lastInstructionReturn?.GetNextInstruction();
     if (curInstruction == null)
     {
         curInstruction = instructionStack.Empty() ?
                          null :
                          instructionStack.Pop();
     }
     if (curInstruction != null)
     {
         curInstruction.GetCodeBlock().ToggleOutline(true);
     }
     else
     {
         if (ExerciseManager.instance.AlertCodeFinished())
         {
             StaticNextChallengeButton.instance.gameObject.SetActive(true);
         }
         ConsoleManager.instance.AddFinishLine();
     }
 }