Ejemplo n.º 1
0
 public void SetContent(CellContent cc)
 {
     lock (this) {
         _contentDictionary.Remove(cc.cellData); //make sure sides are on correct side
         _contentDictionary.Add(cc.cellData, cc);
         _connections.Add(cc);
     }
 }
Ejemplo n.º 2
0
        public void Remove(CellContentData d)
        {
            CellContent c = _contentDictionary[d];

            if (c != null)
            {
                _connections.Remove(c);
            }
            if (!_contentDictionary.Remove(d))
            {
                Debug.LogError("false");
            }
        }