This commit is contained in:
2022-05-02 16:17:05 +03:00
parent 181ce32b7b
commit cd5922d2b8
9 changed files with 56 additions and 59 deletions

View File

@@ -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
{