/// <summary> /// Startet ein neues Spiel sofern keins aktiv ist /// </summary> /// <param name="winner">Schüler = true, Lehrer = false</param> public void EndMinigame(bool?winner) { if (winner.HasValue) { lastfield = currentfield; if (winner.Value) { musicManager.ActionSound(ActionSounds.TeacherLoose); currentfield += 1; } else { musicManager.ActionSound(ActionSounds.StudentLoose); currentfield -= 1; } } DebugCurrentData(); CloseSceneAndShowHub(); }
public void PlayActionSound(ActionSounds sound) { musicManager?.ActionSound(sound); }