Quick and simple Bags library for Unity3D.
Helper classes to manage the storage and randomized retrieval of values. Managed randomness sometimes feels more authentic for gameplay.
All bags provide a common GetNext() call. Most of them provide a simple Add(T) call, or can be populated during construction by passing any IEnumerable reference.
- RandomBag
- Pick items with uniform randomness.
- ShuffleBag
- Pick items with uniform randomness; avoids repeating items until the bag has been completely used (and automatically refilled).
- WeightedBag
- Pick items with weighted randomness.