mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-10 03:45:41 +00:00
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 `Vector4.Deconstruct()`
|
||||
|
||||
### Changed
|
||||
- X10D.Unity: Obsolesced `Singleton<T>`
|
||||
|
||||
## [3.1.0]
|
||||
### Added
|
||||
- Reintroduced Unity support
|
||||
|
@ -7,6 +7,8 @@ namespace X10D.Unity;
|
||||
/// thread-safe.
|
||||
/// </summary>
|
||||
/// <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
|
||||
where T : Singleton<T>
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user