Ejemplo n.º 1
0
        private void InitUIController(GameParentManager parentManager)
        {
            var          uiParnet      = parentManager.GetParnetTrans(ParentName.UIController);
            UIController uiCopntroller = uiParnet.gameObject.AddComponent <UIController>();

            uiCopntroller.Init();
        }
Ejemplo n.º 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);
        }