private void _playRescueCutIn() { if (_attackState == AttackState.FriendExplosion && _isProtect[1]) { Transform transform = _camAerial.transform; Vector3 position = _rescueCutIn._listBattleShip[0].transform.position; transform.localPosition = new Vector3(position.x, 7.5f, -40f); _rescueCutIn.Play(_onFinishedRescueCutIn); } else if (_attackState == AttackState.EnemyExplosion && _isProtect[0]) { Transform transform2 = _camAerial.transform; Vector3 position2 = _rescueCutIn._listBattleShip[0].transform.position; transform2.localPosition = new Vector3(position2.x, 7.5f, 40f); _rescueCutIn.Play(_onFinishedRescueCutIn); } else { _onFinishedRescueCutIn(); } }
private void _playRescueCutIn() { if (_isProtect) { Transform transform = _fieldCam.transform; Vector3 position = _rescueCutIn._listBattleShip[0].transform.position; transform.localPosition = new Vector3(position.x, 3f, -40f); _rescueCutIn.Play(_finishedRescueCutIn); } else { _finishedRescueCutIn(); } }
public void Play(Action callBack) { _listPSTorpedoWake = new List<PSTorpedoWake>(); _isPlaying = true; stateType = StateType.Attack; _actCallback = callBack; _eBattleship = BattleTaskManager.GetBattleShips().dicEnemyBattleShips; _setHpGauge(); _createTorpedoWake(); if (_isProtect) { Transform obj = _camFriend.transform; Vector3 position = _rescueCutIn._listBattleShip[0].transform.position; obj.localPosition = new Vector3(position.x, 3f, -40f); _camFriend.transform.rotation = Quaternion.Euler(new Vector3(0f, 180f, 0f)); _rescueCutIn.Play(_torpedoInjection); } else { _torpedoInjection(); } BattleTaskManager.GetBattleShips().SetTorpedoSalvoWakeAngle(isSet: true); _camFriend.motionBlur.enabled = false; }