Example #1
0
    public void Attack(Unit_Control target)
    {
        int hit = 0;

        if (isMorale)
        {
            hit = Attack_Power / 2;
        }
        else
        {
            hit = Attack_Power;
        }
        target.Be_Hit(hit);
    }
Example #2
0
    public void Unit_Selected(Unit_Control unit_Control)
    {
        if (unableChoose || unit_Control.transform.tag == "Enemy")
        {
            return;
        }
        selectedUnit = unit_Control;
        if (selectedUnit.isCanMove)
        {
            selectedUnit.MovePointDisplay();
        }

        if (selectedUnit.isCanAttack)
        {
            selectedUnit.AttackTargetDisplay();
        }
    }