Make Extensions/ShuffleList generic
This commit is contained in:
parent
295f16e499
commit
6802fc868e
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue