Example #1
0
    void PlayStartRoundNotification()
    {
        uint        player1VictoryCounter = GetPlayerRoundVictoryCounter(EPlayer.Player1);
        uint        player2VictoryCounter = GetPlayerRoundVictoryCounter(EPlayer.Player2);
        ERoundNotif roundNotif            = ERoundNotif.Round1;
        uint        maxRoundToWin         = m_GameConfig.m_MaxRoundsToWin;

        if (player1VictoryCounter >= maxRoundToWin - 1 && player2VictoryCounter >= maxRoundToWin - 1)
        {
            roundNotif = ERoundNotif.FinalRound;
        }
        else if (player1VictoryCounter > 0 || player2VictoryCounter > 0)
        {
            roundNotif = ERoundNotif.Round2;
        }
        PlayRoundNotification(true, roundNotif);
    }
Example #2
0
    void PlayRoundNotification(bool startRound, ERoundNotif roundNotif)
    {
        string animToPlay = "Round" + ((startRound) ? "Start_" : "End_") + roundNotif.ToString();

        m_RoundComponent.m_RoundNotifAnimator.Play(animToPlay, 0, 0);
    }