blob: 271223216504510062a48e4a84d7f70fc2337c47 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
using System;
using Godot;
using Godot.Collections;
namespace Texty.Scripts.GodotExtensions
{
public static class ArrayExtensions
{
public static void ForEach<[MustBeVariant] T>(this Array<T> array, Action<T> action)
{
foreach (var element in array) action.Invoke(element);
}
}
}
|