示例#1
0
文件: Bootstrap.cs 项目: zimpzon/haps
        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);
        }
示例#2
0
 public void Init(bool isStandAloneScene)
 {
     isStandAloneScene_ = isStandAloneScene;
     services_          = ServiceManager.GameServices.GetAllServices();
 }