// Use this for initialization void Start() { tm = gameObject.GetComponent <TextMeshPro>(); //tm.text = "this"; structure = GetComponentInParent <IStructure>(); tm.text = structure.GetBuildingName(); factionColour = (Color32)structure.GetTextColour(); tm.color = factionColour; }