public SetHorizontalTargetItemIndex ( EnhanceItem, selectItem ) : void | ||
selectItem | EnhanceItem, | |
return | void |
protected virtual void OnClickEnhanceItem(MyNGUIEnhanceItem _nItem = null, MyUGUIEnhanceItem _Item = null) { EnhanceScrollView ESV = _nItem.GetComponentInParent <EnhanceScrollView>(); ESV.setFishActivefalse(); ESV.SetHorizontalTargetItemIndex(this); }
/// <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]); }