示例#1
0
 public static void Init(ISetInput setInput)
 {
     if (_instance == null)
     {
         _instance = MonoSingletonCreator.CreateMonoSingleton <InputMgr>();
     }
     SetInput(setInput);
 }
示例#2
0
 public static void Initialize(bool isDontDestory = true)
 {
     m_Instance = MonoSingletonCreator.CreateMonoSingleton <T>(isDontDestory);
     m_Instance.OnSingletonInit();
 }