12 lines
291 B
C#
12 lines
291 B
C#
using Godot;
|
|
using System.Linq;
|
|
|
|
namespace Movementtests.interfaces;
|
|
|
|
public static class NodeExtensions
|
|
{
|
|
public static IKillable[] ToIKillables(this GodotObject[] nodes)
|
|
{
|
|
return nodes == null ? System.Array.Empty<IKillable>() : nodes.OfType<IKillable>().ToArray();
|
|
}
|
|
} |