Cleaned up stuff ig
This commit is contained in:
@@ -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