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 threat status by unique threat ID public Dictionary _targetStatusDictionary; private List _threats; private List _interceptors; private List _vessels; public delegate void RegisterNewThreatDelegate(Threat threat); public event RegisterNewThreatDelegate OnRegisterNewThreat; void Start() { _threats = new List(); } public void RegisterNewThreat(Threat threat) { _threats.Add(threat); OnRegisterNewThreat?.Invoke(threat); } }