Пример #1
0
        public void OnBtnCollectionInfo()
        {
            AudioControl.PlayEffect(GameDef.clickEffect);
            var item = GameData.collectItem[itemID];
            var ud   = AppConfig.Value.mainUserData;

            if (state == 1)
            {
                AudioControl.PlayEffect(GameDef.shiftEffect);
                StartCoroutine(ChangeSprite());
            }
            else if (state == 2)
            {
                UIAPI.ShowCollectionInfoBox(itemImage.sprite, item.itemName, item.itemInfo);
            }
        }