What i did for the challenge

if(TowerLimit > 0)
        {
            InstantiateTower(baseWayPoint);
        }

private void InstantiateTower(WayPoint baseWayPoint)
    {
        print("Can set Turret");
        Instantiate(TowerPrefab, baseWayPoint.transform.position, Quaternion.identity);
        baseWayPoint.isPlaceable = false;
        TowerLimit = TowerLimit - 1;
        print(TowerLimit + " Towers Left");
    }

Privacy & Terms