Table of Contents

Class Singleton<T>

Namespace
Root
Assembly
SPZGameAssembly.dll
[DefaultExecutionOrder(-1)]
public class Singleton<T> : MonoBehaviour where T : Component

Type Parameters

T
Inheritance
object
Object
Component
Behaviour
MonoBehaviour
Singleton<T>
Extension Methods

Constructors

Singleton()

public Singleton()

Fields

G

public static T G

Field Value

T

Methods

Awake()

public virtual void Awake()

HasInstance()

public static bool HasInstance()

Returns

bool

OnDestroy()

protected virtual void OnDestroy()