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); }
public void Init(bool isStandAloneScene) { isStandAloneScene_ = isStandAloneScene; services_ = ServiceManager.GameServices.GetAllServices(); }