17 lines
495 B
C#
17 lines
495 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using Cysharp.Threading.Tasks;
|
|
using DG.Tweening;
|
|
using UnityEngine;
|
|
|
|
public class BattleBlobWarrior : BattleBlobJob
|
|
{
|
|
public async override UniTaskVoid Attack(BattleBlob battleBlob, GameObject target)
|
|
{
|
|
var enemy = target.GetComponent<EnemyController>();
|
|
|
|
enemy.Health -= (int) battleBlob.AttackDamage;
|
|
enemy.rigid.DOMoveX(enemy.rigid.position.x + battleBlob.AttactBackDistance, 0.1f);
|
|
}
|
|
}
|