示例#1
0
    public bool CheckDamageDone(ControlledDivision from)
    {
        base.CheckDamageDone(from);

        if (Soldiers.Count == 0)
        {
            from.DestroyDivision(this);
            return(true);
        }

        RecalculateAggrigateValues();
        return(false);
    }
示例#2
0
    public bool TakeDamage(float damage, ControlledDivision from)
    {
        base.TakeDamage(damage, from);

        if (Soldiers.Count == 0)
        {
            from.DestroyDivision(this);
            return(true);
        }

        RecalculateAggrigateValues();
        return(false);
    }