mirror of https://github.com/oliverbooth/X10D
Marked Singleton<T> obsolete
This pattern is discouraged. ... I regret adding it.
This commit is contained in:
parent
c600825f55
commit
5d63560146
|
@ -44,6 +44,9 @@
|
||||||
- X10D.Unity: Added `Vector3Int.WithZ()`
|
- X10D.Unity: Added `Vector3Int.WithZ()`
|
||||||
- X10D.Unity: Added `Vector4.Deconstruct()`
|
- X10D.Unity: Added `Vector4.Deconstruct()`
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- X10D.Unity: Obsolesced `Singleton<T>`
|
||||||
|
|
||||||
## [3.1.0]
|
## [3.1.0]
|
||||||
### Added
|
### Added
|
||||||
- Reintroduced Unity support
|
- Reintroduced Unity support
|
||||||
|
|
|
@ -7,6 +7,8 @@ namespace X10D.Unity;
|
||||||
/// thread-safe.
|
/// thread-safe.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <typeparam name="T">The type of the singleton.</typeparam>
|
/// <typeparam name="T">The type of the singleton.</typeparam>
|
||||||
|
[Obsolete("This implementation of the singleton pattern is discouraged, and this class will be removed in future. " +
|
||||||
|
"DO NOT USE THIS TYPE IN PRODUCTION.")]
|
||||||
public abstract class Singleton<T> : MonoBehaviour
|
public abstract class Singleton<T> : MonoBehaviour
|
||||||
where T : Singleton<T>
|
where T : Singleton<T>
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue