Esempio n. 1
0
    /// <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();
    }
Esempio n. 2
0
 public void PlayActionSound(ActionSounds sound)
 {
     musicManager?.ActionSound(sound);
 }