title: Display the score in unity
body: <p>I am completely new to unity. I am making a simple 2d platformer game using unity. Can somebody help me to display the score on the game. I am storing the value on a int variable. Below is the c# code i used for the distance covered.</p>
  
  <pre><code>using UnityEngine;
  using System.Collections;
  public class distanc : MonoBehaviour {
      private int dist;
  
      // Use this for initialization
      void Awake () 
      {
          dist = 0;
      }
  
      // Update is called once per frame
      void Update () 
      {
          dist = dist+=1 * Time.deltaTime;
          print("Dist:" + dist);
      }
  }
  </code></pre>
  
  <p>what i want is to display the <strong>dist</strong> value on the screen. I have placed a GUI Text on the screen.</p>