using Godot; using System.Linq; namespace Movementtests.interfaces; public static class NodeExtensions { public static IDamageable[] ToIDamageables(this GodotObject[] nodes) { return nodes == null ? System.Array.Empty() : nodes.OfType().ToArray(); } public static IKillable[] ToIKillables(this GodotObject[] nodes) { return nodes == null ? System.Array.Empty() : nodes.OfType().ToArray(); } }