Skip to content

Commit

Permalink
Lower required Unity version to 2021.3 and improve sample
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisyarbrough committed Feb 11, 2024
1 parent 24f3b71 commit f1dfc7c
Show file tree
Hide file tree
Showing 20 changed files with 435 additions and 681 deletions.
File renamed without changes.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,4 @@ and therefore avoids the larger performance spike of reshuffling/refilling the b
- Efficient implementation: The underlying collection is not resized, instead,
an index is used to perform the random selection.
- Set a custom `RandomSource` for fine-grained control (e.g. to make the bag deterministic or set a seed).
- `Shuffle.FisherYates(IList<T> list)` utility method to shuffle a list in-place.
2 changes: 1 addition & 1 deletion SharpShuffleBag.Unity/Assets/Editor/SampleDevelopment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static void CopySamplesToPackage()
{
// Packages/com.xarbrough.sharp-shuffle-bag-unity/Samples~/Example1
// Packages/com.xarbrough.sharp-shuffle-bag-unity/Samples~/Example2
string dest = "Packages/com.xarbrough.sharp-shuffle-bag-unity/Samples~/" + source.Name;
string dest = "Packages/com.chrisyarbrough.sharpshufflebag/Samples~/" + source.Name;
CopyDirectory(source, dest);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ All notable changes to this package will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [1.0.0] - 2024-02-09
## [1.0.1] - 2024-02-11

- Lower the minimum Unity version to 2021.3
- Improve Unity sample

## [1.0.0] - 2024-02-10

- Initial release
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 Chris Yarbrough

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

Loading

0 comments on commit f1dfc7c

Please sign in to comment.