This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
/// <summary> | |
/// MONOBEHAVIOR PSEUDO SINGLETON ABSTRACT CLASS | |
/// usage : best is to be attached to a gameobject but if not that is ok, | |
/// : this will create one on first access | |
/// example : '''public sealed class MyClass : Singleton<MyClass> {''' | |
/// references : http://tinyurl.com/d498g8c | |
/// : http://tinyurl.com/cc73a9h |