private void SetEnemyShipsDrawType(ProdDetectionResultCutIn.AnimationList iList) { BattleShips battleShips = BattleTaskManager.GetBattleShips(); switch (iList) { case ProdDetectionResultCutIn.AnimationList.DetectionLost: case ProdDetectionResultCutIn.AnimationList.DetectionNotFound: battleShips.SetShipDrawType(FleetType.Enemy, ShipDrawType.Silhouette); break; case ProdDetectionResultCutIn.AnimationList.DetectionSucces: battleShips.SetShipDrawType(FleetType.Enemy, ShipDrawType.Normal); break; } }
private ProdCloud.AnimationList GetFleetFocusAnim(ProdDetectionResultCutIn.AnimationList iList) { ProdCloud.AnimationList result = ProdCloud.AnimationList.ProdCloudIn; switch (iList) { case ProdDetectionResultCutIn.AnimationList.DetectionLost: case ProdDetectionResultCutIn.AnimationList.DetectionNotFound: result = ProdCloud.AnimationList.ProdCloudInNotFound; break; case ProdDetectionResultCutIn.AnimationList.DetectionSucces: result = ProdCloud.AnimationList.ProdCloudIn; break; } return(result); }
private void setDetection(DetectionProductionType iType) { int num = 0; string text = string.Empty; switch (iType) { case DetectionProductionType.Succes: case DetectionProductionType.SuccesLost: this._iList = ProdDetectionResultCutIn.AnimationList.DetectionSucces; text = "s1"; break; case DetectionProductionType.Lost: this._iList = ProdDetectionResultCutIn.AnimationList.DetectionLost; text = "s2"; break; case DetectionProductionType.NotFound: this._iList = ProdDetectionResultCutIn.AnimationList.DetectionNotFound; text = "s3"; break; } using (List <UISprite> .Enumerator enumerator = this._listLabels.GetEnumerator()) { while (enumerator.MoveNext()) { UISprite current = enumerator.get_Current(); current.get_transform().set_localPosition(new Vector3(BattleDefines.DETECTION_RESULT_LABEL_POS.get_Item(iType).get_Item(num), 0f, 0f)); current.spriteName = string.Format("{0}-{1}", text, num + 1); if (current.spriteName == "s2-7") { current.localSize = new Vector3(80f, 18f, 0f); } else if (current.spriteName == "s1-6" || current.spriteName == "s3-5") { current.localSize = new Vector3(40f, 100f); } else { current.localSize = new Vector3(100f, 100f, 0f); } num++; } } this._uiLabel.get_transform().set_localPosition((this._iList != ProdDetectionResultCutIn.AnimationList.DetectionLost) ? Vector3.get_zero() : (Vector3.get_left() * 45f)); }
protected override bool Init() { this._clsSakuteki = BattleTaskManager.GetBattleManager().GetSakutekiData(); if (this._clsSakuteki == null || !BattleTaskManager.GetBattleManager().IsExistSakutekiData()) { base.ImmediateTermination(); this.EndPhase(BattleUtils.NextPhase(BattlePhase.Detection)); return(true); } this._clsState = new StatementMachine(); this._clsState.AddState(new StatementMachine.StatementMachineInitialize(this.InitMoveCameraTo2D), new StatementMachine.StatementMachineUpdate(this.UpdateMoveCameraTo2D)); Transform transform = BattleTaskManager.GetBattleCameras().cutInCamera.get_transform(); this._prodDetectionCutIn = ProdDetectionCutIn.Instantiate(BattleTaskManager.GetPrefabFile().prefabProdDetectionCutIn.GetComponent <ProdDetectionCutIn>(), transform, this._clsSakuteki); this._prodDetectionResultCutIn = ProdDetectionResultCutIn.Instantiate(BattleTaskManager.GetPrefabFile().prefabProdDetectionResultCutIn.GetComponent <ProdDetectionResultCutIn>(), transform, this._clsSakuteki); this._iResult = this._prodDetectionResultCutIn.detectionResult; return(true); }
private Vector3 CalcCameraFleetFocusPos(ProdDetectionResultCutIn.AnimationList iList) { Vector3 result = Vector3.get_zero(); switch (iList) { case ProdDetectionResultCutIn.AnimationList.DetectionLost: case ProdDetectionResultCutIn.AnimationList.DetectionNotFound: case ProdDetectionResultCutIn.AnimationList.DetectionSucces: { Vector3 pointOfGaze = BattleTaskManager.GetBattleShips().flagShipEnemy.pointOfGaze; result = BattleDefines.FLEET_ADVENT_START_CAM_POS.get_Item(1); result.y = pointOfGaze.y; break; } } return(result); }
protected override bool Init() { _clsSakuteki = BattleTaskManager.GetBattleManager().GetSakutekiData(); if (_clsSakuteki == null || !BattleTaskManager.GetBattleManager().IsExistSakutekiData()) { ImmediateTermination(); EndPhase(BattleUtils.NextPhase(BattlePhase.Detection)); return(true); } _clsState = new StatementMachine(); _clsState.AddState(InitMoveCameraTo2D, UpdateMoveCameraTo2D); Transform transform = BattleTaskManager.GetBattleCameras().cutInCamera.transform; _prodDetectionCutIn = ProdDetectionCutIn.Instantiate(((Component)BattleTaskManager.GetPrefabFile().prefabProdDetectionCutIn).GetComponent <ProdDetectionCutIn>(), transform, _clsSakuteki); _prodDetectionResultCutIn = ProdDetectionResultCutIn.Instantiate(((Component)BattleTaskManager.GetPrefabFile().prefabProdDetectionResultCutIn).GetComponent <ProdDetectionResultCutIn>(), transform, _clsSakuteki); _iResult = _prodDetectionResultCutIn.detectionResult; return(true); }