(cherry picked from commit 0cc9ddba16)

# Conflicts:
#	3d Prototyp/Assets/Models/Consumables/Bottle.meta
#	3d Prototyp/Assets/Scenes/GameJamScene.unity
This commit is contained in:
Simon Lübeß
2024-04-07 15:46:17 +02:00
parent 5fb4c2d282
commit 0606b1936d
32 changed files with 2657 additions and 440 deletions

View File

@ -7,6 +7,9 @@ namespace Utility
{
public static T GetRandomElement<T>(this IReadOnlyList<T> list)
{
if (list.Count == 0)
return default;
return list[Random.Range(0, list.Count)];
}
}