Make Extensions/ShuffleList generic

This commit is contained in:
Denis-Cosmin Nutiu 2019-06-02 18:09:42 +03:00
parent 295f16e499
commit 6802fc868e

View file

@ -1,11 +1,11 @@
using System.Collections.Generic; using System.Collections;
using UnityEngine; using UnityEngine;
namespace src.Helpers namespace src.Helpers
{ {
public static class ListExtensions public static class ListExtensions
{ {
public static void ShuffleList(this List<Vector3> list) public static void ShuffleList(this IList list)
{ {
const int min = 0; const int min = 0;
var max = list.Count - 1; var max = list.Count - 1;