using UnityEngine; using System.Collections.Generic; public class Vessel : MonoBehaviour { [SerializeField] private List missileInventory = new List(); public void AddInterceptor(Interceptor interceptor) { if (interceptor != null) { missileInventory.Add(interceptor); } } public void RemoveInterceptor(Interceptor interceptor) { missileInventory.Remove(interceptor); } public List GetInterceptorInventory() { return new List(missileInventory); } public int GetInterceptorCount() { return missileInventory.Count; } // Additional methods can be added here as needed }