Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Slightly random collections for Unity3D.

areyoutoo/Unity3D-Bags

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unity3D-Bags

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.

About

Slightly random collections for Unity3D.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages