public void AddBenefit(BaseBenefit be) { if (!Benefis.ContainsKey(be.ID)) { Benefis.Add(be.ID, be); } }
public void AddBenefit(BaseBenefit benefit) { if (!SharingBenefitIDs.Contains(benefit.ID)) { SharingBenefitIDs.Add(benefit.ID); benefit.AddOwner(ID); } }
public void OnTryClickBuidling(Transform trans) { if (trans != null) { BaseBenefit bb = trans.GetComponent <BaseBenefit>(); if (bb != null) { CurSelectBuildingInfo.Show(bb); } } }
public void Show(BaseBenefit bb) { //Root.gameObject.SetActive(false); Root.localScale = Vector3.one; BuildingNameTxt.text = bb.name; }