Exemplo n.º 1
0
        public static void Initialize()
        {
            if (Initialized)
            {
                throw new Exception("CSharpServiceManager already initialized");
            }

            Initialized = true;
            var go = new GameObject("CSharpServiceManager");

            DontDestroyOnLoad(go);
            Instance = go.AddComponent <CSharpServiceManager>();

            Application.quitting += Clear;
        }
Exemplo n.º 2
0
 public static GlobalCoroutineRunnerService Get()
 {
     return(CSharpServiceManager.Get <GlobalCoroutineRunnerService>(CSharpServiceManager.ServiceType.COROUTINE_SERVICE));
 }
Exemplo n.º 3
0
 public static StatService Get()
 {
     return(CSharpServiceManager.Get <StatService>(CSharpServiceManager.ServiceType.STAT));
 }
Exemplo n.º 4
0
 public void Initialize()
 {
     m_service = CSharpServiceManager.Instance;
 }