// Use this for initialization void Start() { g = this.gameObject; t = GetComponent<Text> (); GameObject player = GameObject.FindGameObjectWithTag ("Player" + num); if (player != null) { f = player.GetComponent<Fighter> (); plSpec = f.GetSpecMeter ().ToString () + "%"; t.text = plSpec; } else { g.SetActive (false); } }