Пример #1
0
        private void focusCamera()
        {
            if (!(fieldCamera != null))
            {
                return;
            }
            for (int i = 0; i < 3; i++)
            {
                switch (pog)
                {
                case POG.注視点:
                    fieldCamera.transform.position = calcCamTargetPosToPog();
                    fieldCamera.LookAt(uiBattleShip.pointOfGaze);
                    break;

                case POG.特殊注視点:
                    fieldCamera.transform.position = calcCamTargetPosToSPPog();
                    fieldCamera.LookAt(uiBattleShip.spPointOfGaze);
                    break;

                case POG.演習注視点:
                    fieldCamera.transform.position = calcCamTargetPosToSPPog();
                    fieldCamera.LookAt(uiBattleShip.spPointOfGaze);
                    break;
                }
            }
        }
        public void setFieldCamera()
        {
            Vector3           calcDefenderCamStartPos = this.calcDefenderCamStartPos;
            BattleFieldCamera friendFieldCamera       = BattleTaskManager.GetBattleCameras().friendFieldCamera;

            friendFieldCamera.motionBlur.set_enabled(true);
            friendFieldCamera.LookAt(this._listBattleShip.get_Item(0).spPointOfGaze);
            friendFieldCamera.ReqViewMode(CameraActor.ViewMode.NotViewModeCtrl);
        }
Пример #3
0
        public void setFieldCamera()
        {
            Vector3           calcDefenderCamStartPo = calcDefenderCamStartPos;
            BattleFieldCamera friendFieldCamera      = BattleTaskManager.GetBattleCameras().friendFieldCamera;

            friendFieldCamera.motionBlur.enabled = true;
            friendFieldCamera.LookAt(_listBattleShip[0].spPointOfGaze);
            friendFieldCamera.ReqViewMode(CameraActor.ViewMode.NotViewModeCtrl);
        }
 public void setFieldCamera(BattleFieldCamera camF, BattleFieldCamera camE)
 {
     if (this._isProtect[0])
     {
         Vector3 calcDefenderCamStartPosF = this.calcDefenderCamStartPosF;
         camF.motionBlur.set_enabled(true);
         camF.LookAt(this._listBattleShipF.get_Item(0).spPointOfGaze);
         camF.ReqViewMode(CameraActor.ViewMode.NotViewModeCtrl);
     }
     if (this._isProtect[1])
     {
         Vector3 calcDefenderCamStartPosE = this.calcDefenderCamStartPosE;
         camE.motionBlur.set_enabled(true);
         camE.LookAt(this._listBattleShipE.get_Item(0).spPointOfGaze);
         camE.ReqViewMode(CameraActor.ViewMode.NotViewModeCtrl);
     }
 }
Пример #5
0
        public void setFieldCamera(BattleFieldCamera camF, BattleFieldCamera camE)
        {
            if (_isProtect[0])
            {
                throw new NotImplementedException("なにこれ");
                // Vector3 calcDefenderCamStartPosF = calcDefenderCamStartPosF;

                camF.motionBlur.enabled = true;
                camF.LookAt(_listBattleShipF[0].spPointOfGaze);
                camF.ReqViewMode(CameraActor.ViewMode.NotViewModeCtrl);
            }
            if (_isProtect[1])
            {
                throw new NotImplementedException("なにこれ");
                // Vector3 calcDefenderCamStartPosE = calcDefenderCamStartPosE;

                camE.motionBlur.enabled = true;
                camE.LookAt(_listBattleShipE[0].spPointOfGaze);
                camE.ReqViewMode(CameraActor.ViewMode.NotViewModeCtrl);
            }
        }