Beispiel #1
0
    public void ATK(bool my, int x)//x 即在哪一行
    {
        if (unitData.Type != "建筑")
        {
            switch (unitData.Name)
            {
            case "天启坦克":
                unitSkill.TianQiTank(unitData.Atteck, x, my);
                break;

            case "磁能坦克":
                unitSkill.CiNengTank(unitData.Atteck, x, my);
                break;

            case "V3火箭车":
                unitSkill.V3Tank(unitData.Atteck, x, my);
                break;

            case "哨戒炮":
                unitSkill.ShaojieTower(unitData.Atteck, x, my);
                break;

            case "磁暴电塔":
                unitSkill.CiBaoTower(unitData.Atteck, x, my);
                break;

            case "核弹发射井":
                unitSkill.HeDanTower(unitData.Atteck);
                DEF(unitData.HP);
                break;
            }
        }
    }