예제 #1
0
    public void TryAttack()
    {
        if (AttackTarget == null)
        {
            return;
        }

        Debug.Log("<color=lime>TryAttack </color>" + GetBattleObjectName() + " -> " + BaseAbility.P_Atk + " / " + AttackTarget.gameObject.name);
        //_icode.stateMachine.SetVariable("AttackType", Random.Range(0, 2));
        AttackTarget.HitByEnemy(TotalPAtk);

        //if (Ability.type == UnitType.DefenseTower) AttackTarget.HitByEnemy(1);
        //else AttackTarget.HitByEnemy(100);
    }