// Use this for initialization void Start() { StartCoroutine(WaitToChangeScene()); InfoPlayer infoPlayer = FindObjectOfType <InfoPlayer>(); textNbrDie.text = "Nombre de mort " + infoPlayer.GetPlayerDieCount(); }
// Use this for initialization void Start() { StartCoroutine(ChangeScene()); InfoPlayer infoPlayer = FindObjectOfType <InfoPlayer>(); textNbrDie.text = "Nbr deaths : " + infoPlayer.GetPlayerDieCount(); }