コード例 #1
0
    public void ConfirmOk()
    {
        //보증금 내기
        theStat.myAllMoney -= GetInPrice;

        stockTable.Add(buildN, stockN);
        priceTable.Add(buildN, GetInPrice);

        theSellBuy.stockSc[stockN].stockGetin = true;
        theHandler.Buildings[buildN].stockIn  = true;

        ConfirmOkP.SetActive(false);
        GetCompanyChoiceP.SetActive(false);

        BackGroundBuildingName[buildN].SetActive(true);
        BackGroundBuildingName[buildN].GetComponentInChildren <TextMeshProUGUI>().text = theSellBuy.stockSc[stockN].stockNameT.text.ToString();

        theNotice.NotificationAppear("\t\t\t\t(축)! 기업을 건물에 입주시키셨습니다 !(축)");
        //인구 제어값 증가, 분야는 아직 미설정
        populationMax += 1;
        checkInOut();

        //체크해서 시너지효과 발생
        theHandler.SynergyCheck(buildN, stockN);
    }