TEST: trap and shakecam

This commit is contained in:
manhduyhoang90
2026-05-18 21:22:34 +07:00
parent 5025383676
commit b7e2c80488
151 changed files with 23277 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
using System.Collections.Generic;
namespace FirstGearGames.Utilities.Objects
{
public static class Arrays
{
/// <summary>
/// Adds an entry to a list if it does not exist already.
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name=""></param>
/// <param name="value"></param>
public static void AddUnique<T>(this List<T> list, object value)
{
if (!list.Contains((T)value))
list.Add((T)value);
}
}
}