Added Some and First to ScriptableObjectList

This commit is contained in:
Adam Ramberg 2019-03-29 10:38:00 +01:00
parent 2a8cafa1ae
commit 03e02ea0f5

View File

@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityAtoms.Extensions;
namespace UnityAtoms
{
@ -47,6 +48,16 @@ namespace UnityAtoms
}
}
public bool Some(Func<T, bool> func)
{
return list.Some(func);
}
public T First(Func<T, bool> func)
{
return list.First(func);
}
public bool Contains(T item)
{
return list.Contains(item);