Example #1
0
    private void SpawnFloor(int level)
    {
        var floor = new TowerFloor(_currentLevel.GetShapeConfig(level), _towerParent, level, _currentLevel.GetAngle(level));

        floor.InstantiateFloor(_cylinderPrefab);
        floor.OnCylinderRemoved += RemoveCylinder;
        _towerFloors.Add(floor);
    }