예제 #1
0
    public void Act()
    {
        attacker.owner = this.gameObject;
        GameObject target = FindTarget();

        //使用物理攻击
        attacker.isMagic     = false;
        attacker.MPCost      = 0;
        attacker.atkAnimName = this.gameObject.name + "_atk";
        attacker.Hit(target);
    }
예제 #2
0
 private void PhysicalAttack(GameObject target)
 {
     attacker.Hit(target);
 }