fix ai
This commit is contained in:
@@ -21,8 +21,6 @@ public class SlimeAI : MonoBehaviour
|
||||
|
||||
private bool isAttacking = false;
|
||||
private float attackStartTime;
|
||||
|
||||
public UnityEvent onDeathComplete;
|
||||
//[SerializeField]
|
||||
//private UnityEvent onAttack;
|
||||
|
||||
@@ -43,7 +41,6 @@ public class SlimeAI : MonoBehaviour
|
||||
if (HP <= 0)
|
||||
{
|
||||
animator.Play("Die");
|
||||
onDeathComplete.Invoke();
|
||||
}
|
||||
if (playerDistance < 1.5) //Attack
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user