Added health bar to slimes and improved attack logic

This commit is contained in:
finnchen123
2025-12-10 16:39:24 +01:00
parent abc11650ee
commit f74ec7e84d
7 changed files with 407 additions and 117 deletions

View File

@@ -242,10 +242,10 @@ namespace Assets.Scripts.Player
switch (col.name)
{
case "AttackRange":
enemy.handleAttack();
enemy.HandleAttack();
break;
case "DetectionRange":
enemy.handleDetection();
enemy.HandleDetection();
break;
case "FollowRange":
//Do nothing, as it needs to be detected first