//--------------------------------------------------------- // This method is called when the player is dead // /!\ This mehtod is not complet /!\ //--------------------------------------------------------- public void playerDead(bool dinoFacingRight) { dead = true; // Play death animation if (isFacingRight == dinoFacingRight) { animator.SetTrigger("dead_back"); } else { animator.SetTrigger("dead_front"); } audioSource.PlayOneShot(soundDead); // play death sound //Pause le jeu Time.timeScale = 0; gameOver.ShowPanel(); }