< Readme
싱글톤 Manager들이 상속할 Singleton 제네릭 클래스 입니다.
GameManager를 재외한 Manager들을 Monobehaviour를 상속하지 않고 동작하고 싶었기 떄문에 Monobehaviour를 상속 받지 않았고
GameManager는 따로 싱글톤 처리를 해주었습니다.
public class Singleton<T> where T : class, new() { private static T _instance; public static T Instance { get { if( _instance == null) { _instance = new T(); } return _instance; } } }
There was an error while loading. Please reload this page.