title: how to make image appear when player is dead in unity
body: <p>I need to  make an image pop up when the player has died or crashed but i do not know how to do it, i'm trying to make a game in unity using c#
   but i have made a code that will tell show the user an image before they start (tap to start image) and all i want to do is display another one that tell to user to start again 
  does the code have to be similar to this or do i have to start from scratch?</p>
  
  <pre><code>public class StartScreenScript : MonoBehaviour {
  
      static bool sawOnce = false;
  
      // Use this for initialization
      void Start () {
          if(!sawOnce) {
              GetComponent&lt;SpriteRenderer&gt;().enabled = true;
              Time.timeScale = 0;
          }
  
          sawOnce = true;
      }
  
      // Update is called once per frame
      void Update () {
          if(Time.timeScale==0 &amp;&amp; (Input.GetKeyDown(KeyCode.Space) || Input.GetMouseButtonDown(0)) ) {
              Time.timeScale = 1;
              GetComponent&lt;SpriteRenderer&gt;().enabled = false;
  
          }
      }
  }
  </code></pre>
  
  <p>this code show the an image telling the user to tap the screen and the image then goes away until the user closes the game then comes back on however i want to display a "you are dead image" every time the player dies can someone please help me </p>
  
  <p>p.s this is for a 2d game</p>