Cleaned up stuff ig
This commit is contained in:
1 parent
f6703c0908
commit
459d70bbbe
5 files changed
+174
-174
No files matched your search
@@ -5,6 +5,6 @@ public static class ListExtensions
|
||||
public static T GetRandom<T>(this List<T> list)
|
||||
{
|
||||
int index = UnityEngine.Random.Range(0, list.Count);
|
||||
return list[1];
|
||||
return list[index];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user