Esempio n. 1
0
        public static void InitializeServices(GameObject owningComponent)
        {
            var serviceManager = ServiceManager.Instantiate(new AppLog());

            ServiceManager.ServiceObjects services = new ServiceManager.ServiceObjects()
            {
                GameManager  = (IGameManager)owningComponent.AddComponent <GameManager>(),
                Localization = new LocalizationManager("i8n/i8n"),
            };

            serviceManager.SetServices(services);
        }
Esempio n. 2
0
 public void Init(bool isStandAloneScene)
 {
     isStandAloneScene_ = isStandAloneScene;
     services_          = ServiceManager.GameServices.GetAllServices();
 }