All Map + things

This commit is contained in:
Crizomb 2025-01-28 02:56:56 +01:00
parent 769264c79b
commit ee2a5fdf08
93 changed files with 5374 additions and 27 deletions

View file

@ -51,5 +51,23 @@ public class MinecraftUnit : AbstractUnit
{
HealthHandler.RemoveArmor(armor);
}
public override void StartFight()
{
Component[] components = GetComponents<Component>();
foreach (Component component in components)
{
if (component is MonoBehaviour monoBehaviour)
{
monoBehaviour.enabled = true;
}
if (component is NavMeshAgent agent)
{
agent.enabled = true;
}
}
}
}