Release 2.0.0
Changelog
Full Changelog: 1.6.0...2.0.0
Removed
- Removed
Bar
script - Removed NaughtyAttributes dependency
- Removed instantiation fallback when a MonoSingleton doesn't exist
Added
- Added
IsInitialized
boolean property to MonoSingleton - Added
MinClamped
andMaxClamped
methods toMathExtensions
- Added
MapRange
for integers - Added
Rand.ColorHSV
(identical to Unity's Random.ColorHSV) - Added two variants for a non-MonoBehaviour singleton (one requires a parameterless constructor, and one has a
Create
abstract method)Singleton.New<T>
Singleton.Create<T>
- Added update managers for having access to unity's update lifecycle outside of MonoBehaviours. Has 3 variants:
UpdateManager
- regular update manager, has events for OnUpdate, OnLateUpdate, and OnFixedUpdateAsyncUpdateManager.Sequential
- asynchronous update manager, awaits every action one after the otherAsyncUpdateManager.Parallel
- asynchronous update manager, starts every action at the same time and waits for all to finish
Changed
- Optimized
QuickSort
methods to stop allocating a whole new list when calling
Install as a submodule
Run the following on the command line in your unity project's folder:
git submodule add https://github.com/TeodorVecerdi/UnityCommons/ <DESTINATION_PATH>