Implemented forced fight, updated attack range to be closer to player.

This commit is contained in:
finnchen123
2026-02-08 13:05:09 +01:00
parent 540cff4ca2
commit 53f775dfe7
15 changed files with 67 additions and 322 deletions

View File

@@ -253,7 +253,7 @@ namespace Assets.Scripts.Player
switch (col.name)
{
case "AttackRange":
enemy.HandleAttack();
GameObject.Find("Fight").GetComponent<Fight>().startFight(worldGenerator.GetComponent<WorldGenerator>().getCurrentTile(), col.gameObject.transform.parent.gameObject, gameObject, false);
break;
case "DetectionRange":
enemy.HandleDetection();