Skip to content

XJINE/Unity_SingletonMonoBehaviour

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unity_SingletonMonoBehaviour

Generic SingletonMonoBehaviour class.

Importing

You can use Package Manager or import it directly.

https://github.com/XJINE/Unity_SingletonMonoBehaviour.git?path=Assets/Packages/SingletonMonoBehaviour

How to Use

Make inheritance & access simply.

public class Sample1 : SingletonMonoBehaviour<Sample1>
{
    public int value = 0;
}

Sample1.Instance.value += 1;

About

Generic SingletonMonoBehaviour class.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages