Example #1
0
    private void PlaceUnit(Vector3 objectPos)
    {
        switch (unitType)
        {
        case 1:
            PlaceWall(objectPos);
            updateImage();
            break;

        case 2:
            towerManager.AddAttackTower(objectPos);
            break;

        case 3:
            towerManager.AddHealTower(objectPos);
            break;

        case 4:
            towerManager.AddSlowerTower(objectPos);
            break;

        case 5:
            Instantiate(worker, objectPos, Quaternion.identity);
            break;

        case 6:
            break;

        case 7:
            break;

        case 8:
            break;

        case 9:
            break;

        case 0:
            break;
        }
    }