コード例 #1
0
        private void InitManager()
        {
            var parentManager = transform.GetOrAddComponent <GameParentManager>();

            parentManager.Init();

            var cameraContrller = parentManager.GetParnetTrans(ParentName.CameraController);
            CameraController cameraController = cameraContrller.gameObject.AddComponent <CameraController>();
            var entity = _contexts.game.CreateEntity();

            entity.AddGameCameraState(CameraAniName.NULL);
            cameraController.Init(_contexts, entity);

            ModelManager.Single.Init();

            _serviceManager = new ServiceManager(parentManager);
            _serviceManager.Init(_contexts);

            var          uiParnet      = parentManager.GetParnetTrans(ParentName.UIController);
            UIController uiCopntroller = uiParnet.gameObject.AddComponent <UIController>();

            uiCopntroller.Init();

            LoadAudioManager.Single.Init();
        }
コード例 #2
0
        private void InitCameraController(GameParentManager parentManager)
        {
            var cameraContrller = parentManager.GetParnetTrans(ParentName.CameraController);
            CameraController cameraController = cameraContrller.gameObject.AddComponent <CameraController>();
            var entity = _contexts.game.CreateEntity();

            entity.AddGameCameraState(CameraAniName.NULL);
            cameraController.Init(_contexts, entity);
        }