コード例 #1
0
ファイル: CityText.cs プロジェクト: Srober10/RTS_Project
 // 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;
 }