SetHorizontalTargetItemIndex() public method

public SetHorizontalTargetItemIndex ( EnhanceItem, selectItem ) : void
selectItem EnhanceItem,
return void
Example #1
0
    protected virtual void OnClickEnhanceItem(MyNGUIEnhanceItem _nItem = null, MyUGUIEnhanceItem _Item = null)
    {
        EnhanceScrollView ESV = _nItem.GetComponentInParent <EnhanceScrollView>();

        ESV.setFishActivefalse();
        ESV.SetHorizontalTargetItemIndex(this);
    }
Example #2
0
 /// <summary>
 /// 点击滚动项目
 /// </summary>
 protected virtual void OnClickEnhanceItem()
 {
     //EnhanceScrollView.Instance.SetHorizontalTargetItemIndex(this);
     enhanceScrollView.SetHorizontalTargetItemIndex(this);
 }
    public void SetTargetItemIndex(int a)
    {
        button.transform.parent.gameObject.SetActive(true);

        EnhanceScroll.SetHorizontalTargetItemIndex(EnhanceScroll.listEnhanceItems[a % 6]);
    }