gameplay
This commit is contained in:
parent
9c9c895319
commit
3230f458a5
6 changed files with 1416 additions and 207 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue