public void addSegment() { string nameKey = "body" + _segmentCount; //var blankSegment = createSegment(_EmptyTexture, new Vector2(-5, -5), Color.Transparent); //segmentsDictionary.Add(nameKey, blankSegment); //_segmentCount++; nameKey = "body" + _segmentCount; segment = createSegment(_Texture, new Vector2(-5, -5), Color.White); segmentsDictionary.Add(nameKey, segment); _segmentCount++; }
void swapPosition(SnakeSegment current, SnakeSegment previous) { }