Пример #1
0
 public bool Initialize(ShienModel_Rai model, PSTorpedoWake trupedoWake)
 {
     this._fieldCam = BattleTaskManager.GetBattleCameras().friendFieldCamera;
     this._fieldCam.ReqViewMode(CameraActor.ViewMode.NotViewModeCtrl);
     this._clsTorpedo  = model;
     this._torpedoWake = trupedoWake;
     this._fPhaseTime  = 0f;
     this._stateType   = ProdSupportTorpedoP1.StateType.None;
     return(true);
 }
		public void Initialize(ShienModel_Rai model, PSTorpedoWake torpedoWake)
		{
			_fTime = 0f;
			stateType = StateType.None;
			_clsTorpedo = model;
			_isAttackE = false;
			_camFriend = BattleTaskManager.GetBattleCameras().friendFieldCamera;
			BattleShips battleShips = BattleTaskManager.GetBattleShips();
			battleShips.SetBollboardTarget(isFriend: false, _camFriend.transform);
			_torpedoParticle = torpedoWake;
			BattleTaskManager.GetTaskTorpedoSalvo();
			Transform prefabProdTorpedoResucueCutIn = BattleTaskManager.GetPrefabFile().prefabProdTorpedoResucueCutIn;
			_rescueCutIn = transform.SafeGetComponent<ProdAerialRescueCutIn>();
			_rescueCutIn._init();
		}
Пример #3
0
        public void Initialize(ShienModel_Rai model, PSTorpedoWake torpedoWake)
        {
            this._fTime      = 0f;
            this.stateType   = ProdSupportTorpedoP2.StateType.None;
            this._clsTorpedo = model;
            this._isAttackE  = false;
            this._camFriend  = BattleTaskManager.GetBattleCameras().friendFieldCamera;
            BattleShips battleShips = BattleTaskManager.GetBattleShips();

            battleShips.SetBollboardTarget(false, this._camFriend.get_transform());
            this._torpedoParticle = torpedoWake;
            TaskBattleTorpedoSalvo taskTorpedoSalvo = BattleTaskManager.GetTaskTorpedoSalvo();
            Transform prefabProdTorpedoResucueCutIn = BattleTaskManager.GetPrefabFile().prefabProdTorpedoResucueCutIn;

            this._rescueCutIn = this.transform.SafeGetComponent <ProdAerialRescueCutIn>();
            this._rescueCutIn._init();
        }
Пример #4
0
 private void _onSupportFleetAdmissionFinished()
 {
     if (_clsShien is ShienModel_Rai)
     {
         _clsTorpedo     = (ShienModel_Rai)_clsShien;
         TorpedoParticle = ParticleFile.Load <PSTorpedoWake>(ParticleFileInfos.BattlePSTorpedowakeD);
         _clsState.AddState(_initSupportTorpedoPhase1, _updateSupportTorpedoPhase1);
     }
     else if (_clsShien is ShienModel_Hou)
     {
         _clsShelling = (ShienModel_Hou)_clsShien;
         _clsState.AddState(_initSupportShelling, _updateSupportShelling);
     }
     else if (_clsShien is ShienModel_Air)
     {
         _clsAerial = (ShienModel_Air)_clsShien;
         _clsState.AddState(_initSupportAerialPhase1, _updateSupportAerialPhase1);
     }
 }