private void OnHourSnapTargetChanged(LoopListView2 listView, LoopListViewItem2 item) { int indexInShownItemList = listView.GetIndexInShownItemList(item); if (indexInShownItemList < 0) { return; } this.mCurSelectedHour = ((ListItem7)((Component)item).GetComponent <ListItem7>()).Value; this.OnListViewSnapTargetChanged(listView, indexInShownItemList); }
private void OnMaxLevelChanged(LoopListView2 listView, LoopListViewItem2 item) { int index = listView.GetIndexInShownItemList(item); if (index < 0) { return; } LevelLimitItem itemScript = item.GetComponent <LevelLimitItem>(); m_LevelMax = itemScript.Level; }
void OnHourSnapTargetChanged(LoopListView2 listView, LoopListViewItem2 item) { int index = listView.GetIndexInShownItemList(item); if (index < 0) { return; } ListItem7 itemScript = item.GetComponent <ListItem7>(); mCurSelectedHour = itemScript.Value; OnListViewSnapTargetChanged(listView, index); }