Exemplo n.º 1
0
 private void Init()
 {
     this.InitButtonEvent();
     this.noGem        = base.FindTransform("noGem").GetComponent <Text>();
     this.materialGems = GemGlobal.GetMaterialGems((EquipLibType.ELT) this.currEquip, this.currSlot);
     if (this.materialGems.get_Count() <= 0)
     {
         base.FindTransform("centre").get_gameObject().SetActive(false);
         this.noGem.get_gameObject().SetActive(true);
         this.noGem.set_text(GameDataUtils.GetChineseContent(621016, false));
     }
     else
     {
         base.FindTransform("centre").get_gameObject().SetActive(true);
         this.noGem.get_gameObject().SetActive(false);
         this.SetScrollRect(this.materialGems);
     }
 }