示例#1
0
 public void onClickRewardItem(UIChallengeItemSlot selectItemSlot)
 {
     if (gameObject.activeSelf)
     {
         iconTooltip.start(selectItemSlot.infoData.getTooltipDescription(), selectItemSlot.transform.position.x, selectItemSlot.transform.position.y + 150.0f);
     }
 }
 public void onClick(UIChallengeItemSlot clickItem)
 {
     /*
      * if(_selectCount >= _totalStar) return;
      *
      * RuneStudioMain.instance.challengeResult2Star[_totalStar - _selectCount - 1].enabled = true;
      * clickItem.setData(rewardItems[_selectCount]);
      ++_selectCount;
      * StartCoroutine(delayShowSlot(clickItem.index, clickItem));
      */
 }
    IEnumerator delayShowSlot(int slotIndex, UIChallengeItemSlot clickItem)
    {
        /*
         * RuneStudioMain.instance.challengeResultSlotFSM[slotIndex].enabled = true;
         * clickItem.spCloseCover.gameObject.SetActive(false);
         *
         * if(_selectCount >= _totalStar && _close == false)
         * {
         *      _close = true;
         *      yield return new WaitForSeconds(4.0f);
         *      close();
         * }
         */

        yield return(null);
    }
示例#4
0
    public void onClickSlot(UIChallengeItemSlot selectSlot)
    {
        if (_prevSlot != null)
        {
            _prevSlot.select = false;
        }

        currentIngredientId = selectSlot.inputItemId;
        selectSlot.select   = true;
        _prevSlot           = selectSlot;

        if (_prevSlot != null)
        {
            refreshInfo();
        }
    }