diff --git a/theProject/Assets/Scripts/Squad.cs b/theProject/Assets/Scripts/Squad.cs index 25d19248..a9a7c5d5 100644 --- a/theProject/Assets/Scripts/Squad.cs +++ b/theProject/Assets/Scripts/Squad.cs @@ -5,6 +5,7 @@ using UnityEngine; public class Squad : MonoBehaviour { + #region Orders public abstract class Order // generic order (to keep in queue) { public virtual void PassToSoldier(Soldier targetSoldier) // "translate" the order to the soldier @@ -28,6 +29,7 @@ public class Squad : MonoBehaviour Debug.Log($"Soldier {targetSoldier.name} received movement order towards coordinates {x},{y}"); } } + #endregion [SerializeField] private List soldiers = new List(); // soldiers belonging to the squad private Queue orders = new Queue(); // orders given to the squad