void IPMCompilerStopped.OnPMCompilerStopped(HelloCompiler.StopStatus status) { if (status == HelloCompiler.StopStatus.RuntimeError) { SetIsManusPlaying(false); } }
void IPMCompilerStopped.OnPMCompilerStopped(HelloCompiler.StopStatus status) { if (!PMWrapper.IsDemoingLevel) { reActivateField(); } }
void IPMCompilerStopped.OnPMCompilerStopped(HelloCompiler.StopStatus status) { if (status != HelloCompiler.StopStatus.RuntimeError) { SetState(State.Hidden); } }
void IPMCompilerStopped.OnPMCompilerStopped(HelloCompiler.StopStatus status) { //Tooltip.text = "Kör koden!"; //Tooltip.ApplyTooltipTextChange(); ThisButton.image.sprite = PlayImage; }
public void OnPMCompilerStopped(HelloCompiler.StopStatus status) { if (status == HelloCompiler.StopStatus.Finished) { CorrectCase(); } }
public void OnPMCompilerStopped(HelloCompiler.StopStatus status) { if (status == HelloCompiler.StopStatus.Finished) { int itemsToUnload = 0; foreach (Section section in caseData.cars[0].sections) { itemsToUnload += section.itemCount; } if (itemsUnloaded < itemsToUnload) { int itemsNotUnloaded = itemsToUnload - itemsUnloaded; string itemsSingularOrPlural = itemsNotUnloaded == 1 ? "1 vara" : itemsNotUnloaded + " varor"; PMWrapper.RaiseTaskError("Alla varor blev inte avlastade. Nu är det " + itemsSingularOrPlural + " som inte lastas av."); } if (itemsToUnload == itemsUnloaded) { PMWrapper.SetCaseCompleted(); } } itemsUnloaded = 0; }
public void OnPMCompilerStopped(HelloCompiler.StopStatus status) { PlayerMovement playerMovement = null; if (playerObject != null) { playerMovement = playerObject.GetComponent <PlayerMovement>(); } if (status == HelloCompiler.StopStatus.Finished) { if (playerMovement != null && playerMovement.AtChargeStation) { if (!playerMovement.isCharging) { PMWrapper.RaiseTaskError("Podden laddades inte. Kom ihåg att ladda()."); } } else { PMWrapper.RaiseTaskError("Podden kom inte hela vägen fram."); } } if (playerMovement != null && !playerMovement.isCharging) { playerMovement.Reset(); } }
public void OnPMCompilerStopped(HelloCompiler.StopStatus status) { if (status == HelloCompiler.StopStatus.Finished) { if (!PMWrapper.levelShouldBeAnswered) { WinIfCarsUnloaded(); } } }
public void OnPMCompilerStopped(HelloCompiler.StopStatus status) { if (!IsTesting) { return; } if (status == HelloCompiler.StopStatus.RuntimeError || status == HelloCompiler.StopStatus.TaskError) { testErrors.Add(new TestError(Main.Instance.LevelDefinition.id, status.ToString())); TestNextLevel(); } }
public void OnPMCompilerStopped(HelloCompiler.StopStatus status) { if (status == HelloCompiler.StopStatus.Finished) { if (CorrectSorting()) { PMWrapper.SetCaseCompleted(); } } SortedQueue.ResetQueues(); }
public void OnPMCompilerStopped(HelloCompiler.StopStatus status) { if (LevelAnswer != null) { LevelAnswer.compilerHasBeenStopped = true; } if (status == HelloCompiler.StopStatus.Finished) { if (PMWrapper.levelShouldBeAnswered && UISingleton.instance.taskDescription.isActiveAndEnabled) { PMWrapper.RaiseTaskError("Fick inget svar"); } } }
public void OnPMCompilerStopped(HelloCompiler.StopStatus status) { if (status == HelloCompiler.StopStatus.Finished) { if (CarsSorted < carsToSort) { PMWrapper.RaiseTaskError("Alla varor sorterades inte."); } else if (CorrectSorting()) { PMWrapper.SetCaseCompleted(); } } SortedQueue.ResetQueues(); }
public void OnPMCompilerStopped(HelloCompiler.StopStatus status) { if (status == HelloCompiler.StopStatus.Finished) { if (LevelMode == LevelMode.Sandbox && Main.Instance.LevelData.cases != null && Main.Instance.LevelData.cases.Count > 0) { CorrectProgramPanel.SetActive(true); } else if (LevelMode == LevelMode.Case) { foreach (var ev in UISingleton.FindInterfaces <IPMTimeToCorrectCase>()) { ev.OnPMTimeToCorrectCase(); } } else { PMWrapper.SetLevelCompleted(); } } if (status == HelloCompiler.StopStatus.RuntimeError) { if (LevelMode == LevelMode.Case) { Main.Instance.CaseHandler.CaseFailed(); } } if (status == HelloCompiler.StopStatus.UserForced) { if (LevelMode == LevelMode.Case) { Main.Instance.CaseHandler.IsCasesRunning = false; } } }
void IPMCompilerStopped.OnPMCompilerStopped(HelloCompiler.StopStatus status) { reActivateField(); }
public void OnPMCompilerStopped(HelloCompiler.StopStatus status) { LoadCase(PMWrapper.currentLevel, 0); }
public void OnPMCompilerStopped(HelloCompiler.StopStatus status) { DeactivateLastInput(); StopAllCoroutines(); }
public void OnPMCompilerStopped(HelloCompiler.StopStatus status) { DisableScanner(); StopAllCoroutines(); }