Skip to content

1.0.0

Compare
Choose a tag to compare
@mackysoft mackysoft released this 01 Feb 14:15
· 39 commits to main since this release

Added

  • Added the IWeightedSelector<T> and WeightedSelector<T>.
  • Added an unit tests.

Changes

  • Renamed the ToReadOnlyWeightedSelector method to ToWeightedSelector.
  • Renamed the SelectItem method that used UnityEngine.Random.value to SelectItemWithUnityRandom.
  • All WeightedSelectMethods now support weights less than or equal to 0.
  • IWeightedSelectMethod now takes a TemporaryArray as an argument instead of a float[].

Fixes

  • Fixed a fatal bug that prevented BinaryWeightedSelectMethod from working.