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