Ejemplo n.º 1
0
    private void OnWinGame(object sender, WinGameEventArgs e)
    {
        var countStars = e.HealthPoint;

        StartCoroutine(PlayStarSounds(countStars));
        UnsubscribeEvents();
    }
Ejemplo n.º 2
0
    public void OnWinGame(int playerHealthPoint)
    {
        WinGameEventArgs winGame = new WinGameEventArgs {
            HealthPoint = playerHealthPoint
        };

        WinGame?.Invoke(this, winGame);
    }
Ejemplo n.º 3
0
 private void OnWin(object sender, WinGameEventArgs e)
 {
     StartCoroutine(SoundOff());
     StopCoroutine(coroutine);
     EventAggregator.instance.WinGame -= OnWin;
 }
Ejemplo n.º 4
0
 private void OnWin(object sender, WinGameEventArgs e)
 {
     StartCoroutine(WinGameCoroutine());
     EventAggregator.instance.WinGame -= OnWin;
 }