Beispiel #1
0
        public static void GetItemDesButton(GameObject go, int itemDataID, bool isLongPress = true)
        {
            ItemDesButton       itemDesButton = ItemDesButton.Get(go);
            ShowDescriptionType type          = isLongPress ? ShowDescriptionType.longPress : ShowDescriptionType.click;

            itemDesButton.SetItemInfo(itemDataID, type);
        }
 private void init()
 {
     InitText();
     //Prefab_HeroButton.SetActive(false);
     for (int i = 0; i < imgSweeps.Length; i++)
     {
         ItemDesButton.Get(imgSweeps[i].gameObject).SetItemInfo(GlobalData.GetGlobalData().sweepTicket.id);
     }
     Refresh();
 }
Beispiel #3
0
 void Awake()
 {
     SetSelect(false);
     _itemDesButton = ItemDesButton.Get(gameObject);
 }