public void _startAntiAerialCutIn() { if (_koukuuModel.GetTaikuShip(is_friend: true) != null) { if (_prodAntiAerialCutIn == null) { BattleCutInEffectCamera cutInEffectCamera = BattleTaskManager.GetBattleCameras().cutInEffectCamera; _prodAntiAerialCutIn = ProdAntiAerialCutIn.Instantiate(Resources.Load <ProdAntiAerialCutIn>("Prefabs/Battle/Production/AerialCombat/ProdAntiAerialCutIn"), _koukuuModel, cutInEffectCamera.transform); } _prodAntiAerialCutIn.Play(_compAntiAerialCutInEnemy, isFriend: true); } else if (_koukuuModel.GetTaikuShip(is_friend: false) != null) { if (_prodAntiAerialCutIn == null) { BattleCutInEffectCamera cutInEffectCamera2 = BattleTaskManager.GetBattleCameras().cutInEffectCamera; _prodAntiAerialCutIn = ProdAntiAerialCutIn.Instantiate(Resources.Load <ProdAntiAerialCutIn>("Prefabs/Battle/Production/AerialCombat/ProdAntiAerialCutIn"), _koukuuModel, cutInEffectCamera2.transform); } _prodAntiAerialCutIn.Play(_compAntiAerialCutInEnemy, isFriend: false); } else { _compAntiAerialCutInEnemy(); } }
private void _setShipInfo(bool isFriend) { _ship = _clsAerial.GetTaikuShip(isFriend); _uiShip.mainTexture = ShipUtils.LoadTexture(_ship); _uiShip.MakePixelPerfect(); _uiShip.transform.localPosition = Util.Poi2Vec(new ShipOffset(_ship.GetGraphicsMstId()).GetShipDisplayCenter(_ship.DamagedFlg)); _uiShip.flip = ((!isFriend) ? UIBasicSprite.Flip.Horizontally : UIBasicSprite.Flip.Nothing); _uiShipShadow.mainTexture = _uiShip.mainTexture; _uiShipShadow.MakePixelPerfect(); _uiShipShadow.flip = ((!isFriend) ? UIBasicSprite.Flip.Horizontally : UIBasicSprite.Flip.Nothing); _uiShipObj.transform.localRotation = ((!isFriend) ? Quaternion.EulerAngles(new Vector3(0f, 180f, 0f)) : Quaternion.EulerAngles(Vector3.zero)); }