Tilt Five™ Unity API  1.4.1
TiltFive.Singleton< T > Class Template Reference

Protected Member Functions

 Singleton ()
 

Properties

static T Instance [get]
 

Static Private Member Functions

static Singleton ()
 

Static Private Attributes

static readonly T instance = new T()
 

Detailed Description

Type Constraints
T :new() 

Definition at line 22 of file Singleton.cs.

Constructor & Destructor Documentation

◆ Singleton() [1/2]

static TiltFive.Singleton< T >.Singleton ( )
staticprivate

Definition at line 28 of file Singleton.cs.

29  {
30  }

◆ Singleton() [2/2]

TiltFive.Singleton< T >.Singleton ( )
protected

Definition at line 32 of file Singleton.cs.

33  {
34  }

Member Data Documentation

◆ instance

readonly T TiltFive.Singleton< T >.instance = new T()
staticprivate

Definition at line 24 of file Singleton.cs.

Property Documentation

◆ Instance

T TiltFive.Singleton< T >.Instance
staticgetprotected

Definition at line 36 of file Singleton.cs.

37  {
38  get
39  {
40  return instance;
41  }
42  }
static readonly T instance
Definition: Singleton.cs:24

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