using System.Collections; using System.Collections.Generic; using UnityEngine; public static class VesselExtension { public static bool IsNullOrEmpty(this List vessel) { return vessel == null || vessel.Count == 0; } public static bool IsNullOrEmpty(this T[] vessel) { return vessel == null || vessel.Length == 0; } public static bool IsNullOrEmpty(this Dictionary dictionary) { return dictionary == null || dictionary.Count == 0; } }