This commit is contained in:
Kirabsol 2025-01-29 01:02:31 +01:00
commit 8101f86b06
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);
}