// Unity functions void Awake() { if (Instance) { Debug.LogWarning($"RBTUnitCommander on '{gameObject.name}' was destroyed as there's already one attached on '{Instance.gameObject.name}'"); Destroy(this); return; } else { Instance = this; } if (!_unitBehaviourManager) { Debug.LogWarning($"There's no unit behaviour manager assigned to RBTUnitCommander on '{gameObject.name}''"); } }
public CommandGivenEvent(RBTUnitCommander sender, Vector3 position, List <RBTUnit> units) { Sender = sender; Position = position; Units = units; }