private bool _uiW = false; //toggle affichage #endregion Fields #region Methods public void Build(Vector3 origine,int index,Vector4 nsew) { if(_accList.ContainsKey(index)) { AccPosNb tmp = _accList[index]; if(tmp.N >0 && tmp.N <= nbMax) { AddAccs(origine,index,ref tmp.N,"N"); } if(tmp.S >0 && tmp.S <= nbMax) { AddAccs(origine,index,ref tmp.S,"S"); } if(tmp.E >0 && tmp.E <= nbMax) { AddAccs(origine,index,ref tmp.E,"E"); } if(tmp.W >0 && tmp.W <= nbMax) { AddAccs(origine,index,ref tmp.W,"W"); } if(index == _selectedIndex) _uiAPNb = tmp; } }
private void UpdateSelected(int i) { _selectedIndex = i; if(_accList.ContainsKey(_selectedIndex)) _uiAPNb = _accList[_selectedIndex]; else _uiAPNb = new AccPosNb(); }