Class Singleton<T>
シングルトンクラス
Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
Singleton<T>
Namespace: TofAr.V0
Assembly: TofArAssembly.dll
Syntax
public class Singleton<T> : MonoBehaviour where T : Singleton<T>
Type Parameters
Name | Description |
---|---|
T | クラス |
Fields
stopLock
Declaration
protected object stopLock
Field Value
Type |
---|
System.Object |
Properties
Instance
インスタンスを取得する
Declaration
public static T Instance { get; }
Property Value
Type |
---|
T |
Instantiated
trueの場合、インスタンス化されている
Declaration
public static bool Instantiated { get; }
Property Value
Type |
---|
System.Boolean |
Methods
Awake()
スクリプトのインスタンスがロードされたときに呼び出されます
Declaration
protected virtual void Awake()