XJINE / Unity_SingletonMonoBehaviour

Generic SingletonMonoBehaviour class.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:C# 100.0%