Exemplo n.º 1
0
	// Update is called once per frame
	void Update () {
        if(dis == null)
        {
            dis = GameObject.Find("players").GetComponent<DInGameScore>();
        }
        textMesh.text = message + dis.GetTotalScore().ToString();
	}
Exemplo n.º 2
0
 // Update is called once per frame
 void Update()
 {
     if (dis == null)
     {
         dis = GameObject.Find("players").GetComponent <DInGameScore>();
     }
     textMesh.text = message + dis.GetTotalScore().ToString();
 }
Exemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     instance = this;
 }
Exemplo n.º 4
0
	// Use this for initialization
	void Start () {
        instance = this;
	}