This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//https://gist.github.com/col000r/6658520 | |
//but all the hard work done by mstevenson: https://gist.github.com/mstevenson/4050130 | |
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
public class ShuffleBag<T> : ICollection<T>, IList<T> { | |
private List<T> data = new List<T> (); | |
private int cursor = 0; |