This commit is contained in:
Crizomb 2025-01-28 23:38:41 +01:00
parent 9c9c895319
commit 3230f458a5
6 changed files with 1416 additions and 207 deletions

View file

@ -6,12 +6,12 @@ public class DefensiveBehaviour : AbstractBehaviour
{
if (CurrentMinecraftUnit.IsTeamA)
{
if (GlobalsVariable.AliveUnitsTeamB.Count == 0) return;
if (GlobalsVariable.QueenA != null) return;
CurrentMinecraftUnit.MovementHandler.UpdateNearestFrom(GlobalsVariable.QueenA.transform);
}
else
{
if (GlobalsVariable.AliveUnitsTeamA.Count == 0) return;
if (GlobalsVariable.QueenB != null) return;
CurrentMinecraftUnit.MovementHandler.UpdateNearestFrom(GlobalsVariable.QueenB.transform);
}