using UnityEngine; using System.Collections.Generic; using System.Collections; using System; // Integrated Air Defense System public class IADS : MonoBehaviour { public enum TargetStatus { UNASSIGNED, ASSIGNED, HIT, DEGRADED, DESTROYED } // Look up target status by unique target ID public Dictionary _targetStatusDictionary; private List _targets; private List _missiles; private List _vessels; public delegate void RegisterNewTargetDelegate(Target target); public event RegisterNewTargetDelegate OnRegisterNewTarget; void Start() { _targets = new List(); } public void RegisterNewTarget(Target target) { _targets.Add(target); OnRegisterNewTarget?.Invoke(target); } }