Beispiel #1
0
 public void activateBuildingOnwerSaid(BuildingJson info)
 {
     deactiveAllBox();
     this.buildingOwner.transform.SetAsLastSibling();
     this.buildingOwner.GetComponent <BuildingOwnerScript>().setInfo(info);
     this.buildingOwner.transform.localPosition = new Vector3(0, -166, -50);
     this.buildingOwner.transform.localScale    = new Vector3(56, 50, 1);
     this.buildingOwner.SetActive(true);
 }
Beispiel #2
0
    public void setInfo(BuildingJson info)
    {
        saleText.text     = info.price.sale;
        parttimeText.text = info.part_time_job.number;
        areaText.text     = info.area;

        double income = double.Parse(info.part_time_job.number) * double.Parse(info.part_time_job.money);

        incomeText.text = income.ToString();
    }
Beispiel #3
0
    /*  빌딩의 정보를 set하는 부분.
     *  나중에 따로 building info class를 setting 할 예정*/
    public void setBuildingInfo(BuildingJson bi)
    {
        this.info = bi;

        this.dataManager = GameObject.Find("DataManager");
    }
 /*  말풍선의 정보를 세팅 */
 public void setInfo(BuildingJson info)
 {
     buyText.text      = info.price.sale;
     parttimeText.text = info.part_time_job.money;
 }