Ejemplo n.º 1
0
        private void _setCameraRotation()
        {
            BattleFieldCamera friendFieldCamera = BattleTaskManager.GetBattleCameras().friendFieldCamera;

            friendFieldCamera.ReqViewMode(CameraActor.ViewMode.RotateAroundObject);
            friendFieldCamera.SetRotateAroundObjectCamera(Vector3.get_zero(), new Vector3(0f, 19f, 220f), 1f);
        }
Ejemplo n.º 2
0
        private void InitCommandBackground()
        {
            BattleField   battleField   = BattleTaskManager.GetBattleField();
            BattleCameras battleCameras = BattleTaskManager.GetBattleCameras();
            BattleShips   battleShips   = BattleTaskManager.GetBattleShips();

            BattleTaskManager.GetPrefabFile().DisposeProdCloud();
            battleField.dicFleetAnchor.get_Item(FleetType.Friend).set_position(Vector3.get_forward() * 100f);
            battleField.dicFleetAnchor.get_Item(FleetType.Enemy).set_position(Vector3.get_back() * 100f);
            BattleFieldCamera battleFieldCamera = battleCameras.fieldCameras.get_Item(0);

            battleFieldCamera.ReqViewMode(CameraActor.ViewMode.RotateAroundObject);
            battleFieldCamera.SetRotateAroundObjectCamera(battleField.fieldCenter.get_position(), 200f, -9.5f);
            battleFieldCamera.get_transform().LTMoveY(15.51957f, 0.01f).setEase(LeanTweenType.easeOutQuart);
            this._uiBlur.set_enabled(true);
            battleShips.RadarDeployment(true);
        }
Ejemplo n.º 3
0
        private void InitCommandBackground()
        {
            BattleField   battleField   = BattleTaskManager.GetBattleField();
            BattleCameras battleCameras = BattleTaskManager.GetBattleCameras();
            BattleShips   battleShips   = BattleTaskManager.GetBattleShips();

            BattleTaskManager.GetPrefabFile().DisposeProdCloud();
            battleField.dicFleetAnchor[FleetType.Friend].position = Vector3.forward * 100f;
            battleField.dicFleetAnchor[FleetType.Enemy].position  = Vector3.back * 100f;
            BattleFieldCamera battleFieldCamera = battleCameras.fieldCameras[0];

            battleFieldCamera.ReqViewMode(CameraActor.ViewMode.RotateAroundObject);
            battleFieldCamera.SetRotateAroundObjectCamera(battleField.fieldCenter.position, 200f, -9.5f);
            battleFieldCamera.transform.LTMoveY(15.51957f, 0.01f).setEase(LeanTweenType.easeOutQuart);
            _uiBlur.enabled = true;
            battleShips.RadarDeployment(isDeploy: true);
        }