Revert "Merge branch 'main' of https://gitfrieds.nackenbox.xyz/MeigoFried/GameVsJam"
This reverts commit7a477817fe, reversing changes made to7c127ac68e.
This commit is contained in:
@ -7,9 +7,6 @@ namespace Utility
|
||||
{
|
||||
public static T GetRandomElement<T>(this IReadOnlyList<T> list)
|
||||
{
|
||||
if (list.Count == 0)
|
||||
return default;
|
||||
|
||||
return list[Random.Range(0, list.Count)];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user