JUtils
A unity utilities library
JUtils.AutoSingletonBehaviour< T > Class Template Reference

Your simple and everyday singleton class that automatically instantiates if there is no instance yet More...

Inheritance diagram for JUtils.AutoSingletonBehaviour< T >:
Collaboration diagram for JUtils.AutoSingletonBehaviour< T >:

Protected Member Functions

virtual void Awake ()
 
virtual void OnDestroy ()
 

Properties

static T instance [get]
 
static bool exists [get]
 

Detailed Description

Your simple and everyday singleton class that automatically instantiates if there is no instance yet

Type Constraints
T :AutoSingletonBehaviour<T> 

Member Function Documentation

◆ Awake()

virtual void JUtils.AutoSingletonBehaviour< T >.Awake ( )
inlineprotectedvirtual

◆ OnDestroy()

virtual void JUtils.AutoSingletonBehaviour< T >.OnDestroy ( )
inlineprotectedvirtual

Property Documentation

◆ exists

bool JUtils.AutoSingletonBehaviour< T >.exists
staticget

◆ instance

T JUtils.AutoSingletonBehaviour< T >.instance
staticget

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