示例#1
0
 void EndRound(bool won)
 {
     StartCoroutine(ChangeText("Fin de la manche"));
     state = FightState.END;
     panelAnimator.SetBool("FightPanelActive", false);
     onFightEnd.Invoke(won);
 }
        IEnumerator EndGame(bool won)
        {
            //button.SetActive(false)
            state = FightState.END;
            yield return(StartCoroutine(ChangeText(won ? "Vous avez gagné !" : " Vous avez perdu !")));

            yield return(new WaitForSeconds(2.0f));

            panelAnimator.SetBool("PanelActive", false);
            onFightEnd.Invoke(won);
        }