//Button onClick event public void setBG(int btn) { HouseMoneyEvent(btn); HouseChangeBG(btn); changeBGBuyEnable(btn); //자산 housenowPrice 업데이트 AssetsEvent myAssetList = GameObject.Find("AssetsManager").GetComponent <AssetsEvent>(); myAssetList.Asset_houseNowPrice[btn] = BG_Price[btn]; }
//Button onClick event public void setBG(int btn) { countryMoneyEvent(btn); countryAdd(btn); CountryChangeBG(btn); changeBuyEnable(btn); //자산 housenowPrice 업데이트 AssetsEvent myAssetList = GameObject.Find("AssetsManager").GetComponent <AssetsEvent>(); myAssetList.Asset_countryNowPrice[btn] = Price[btn]; }