Simple Poker Template 0.0.1
Loading...
Searching...
No Matches
SimplePoker.StaticInstance< T > Class Template Referenceabstract

A static instance is similar to a singleton, but instead of destroying any new instances, it overrides the current instance. More...

Inheritance diagram for SimplePoker.StaticInstance< T >:
SimplePoker.Singleton< T > SimplePoker.PersistentSingleton< T >

Protected Member Functions

virtual void Awake ()
 
virtual void OnApplicationQuit ()
 

Properties

static T Instance [get]
 

Detailed Description

A static instance is similar to a singleton, but instead of destroying any new instances, it overrides the current instance.

This is handy for resetting the state and saves you doing it manually

Template Parameters
TThe type of the singleton MonoBehaviour.
Type Constraints
T :MonoBehaviour 

Member Function Documentation

◆ Awake()

virtual void SimplePoker.StaticInstance< T >.Awake ( )
protectedvirtual

◆ OnApplicationQuit()

virtual void SimplePoker.StaticInstance< T >.OnApplicationQuit ( )
protectedvirtual

Property Documentation

◆ Instance

T SimplePoker.StaticInstance< T >.Instance
staticget

The documentation for this class was generated from the following file: