mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-21 23:58:49 -05:00
Added Some and First to ScriptableObjectList
This commit is contained in:
parent
2a8cafa1ae
commit
03e02ea0f5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user