예제 #1
0
 public void Attack(CharacterLogic target)
 {
     if (target.team != team)
     {
         int finalATK = (int)(atk.Value * GameDefine.ATKMap[Mathf.Abs(target.pos.x - pos.x)]);
         target.Damage(finalATK);
     }
     else
     {
         Debug.LogError("can not attack teammate");
     }
 }