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