public void registerTower(GameTowerInstance towerInstance) { lock (_towers) { _towers.Add(towerInstance.getObjectId(), towerInstance); } }
public void unregisterTower(GameTowerInstance towerInstance) { lock (_towers) { _towers.Remove(towerInstance.getObjectId()); } }