public void Add() { KeyValuePair <List <KeyValuePair <int, int> >, List <KeyValuePair <int, int> > > data = new KeyValuePair <List <KeyValuePair <int, int> >, List <KeyValuePair <int, int> > >(new List <KeyValuePair <int, int> >(), new List <KeyValuePair <int, int> >()); list.Add(data); field.Show(data); superList.SetData(list); superList.SetSelectedIndex(list.Count - 1); }
private void QuadClick(int _index, RaycastHit hit, int _data) { if (heroSuperList.GetSelectedIndex() != -1) { int fix = battle.clientIsMine ? 1 : -1; HeroCellClick(heroList [heroSuperList.GetSelectedIndex()].id, hit.point.x * fix, hit.point.z * fix); heroSuperList.SetSelectedIndex(-1); } }