public void RemoveAt(int index) { if (index < state.vegetablesOnLevel[levelIndx].Count) { state.forgetVegetable(levelIndx, state.vegetablesOnLevel[levelIndx].Count - 1); state.vegetablesOnLevel[levelIndx][index] = null; } }
public void RemoveAt(int index) { if (index < state.vegetablesOnLevel[levelIndx].Count) { state.forgetVegetable(levelIndx, state.vegetablesOnLevel[levelIndx].Count - 1); state.vegetablesOnLevel[levelIndx][index] = null; } }