public void ShowUIInfo(AbsCamp _camp) { camp = _camp; AbsCamp.NowCampUI = this; OnShow(); campSprite.sprite = FactoryManager.AssetFactory.LoadSprite(_camp.IconSprite); campText.text = _camp.Name; UpgradeCampInfo(); UpdateInfo(); if (camp is CaptiveCamp) { upgradeCampButton.gameObject.SetActive(false); upgradeWeaponButton.gameObject.SetActive(false); } else { upgradeCampButton.gameObject.SetActive(true); upgradeWeaponButton.gameObject.SetActive(true); } }
public void OnInit(AbsCamp _camp) { Camp = _camp; }