コード例 #1
0
    public void SetInfo(int unit_id, BarackInfo barack)
    {
        this.unit_id = unit_id;
        Item unit = ItemManager.GetItemByID(unit_id);

        parent         = barack;
        text.text      = unit.Name;
        image.material = unit.material;
    }
コード例 #2
0
ファイル: Barack.cs プロジェクト: kostyl2220/game_strategy
 public override void SetInfoData(GameObject parent)
 {
     barack_info = parent.GetComponentInChildren <BarackInfo>(true);
     barack_info.gameObject.SetActive(true);
     SetInfoData();
 }