private bool _initAircraftCombatPhase2(object data)
        {
            BattleCutInCamera              cutInCamera          = BattleTaskManager.GetBattleCameras().cutInCamera;
            BattleCutInCamera              cutInCamera2         = BattleTaskManager.GetBattleCameras().cutInCamera;
            BattleCutInEffectCamera        cutInEffectCamera    = BattleTaskManager.GetBattleCameras().cutInEffectCamera;
            Dictionary <int, UIBattleShip> dicFriendBattleShips = BattleTaskManager.GetBattleShips().dicFriendBattleShips;
            Dictionary <int, UIBattleShip> dicEnemyBattleShips  = BattleTaskManager.GetBattleShips().dicEnemyBattleShips;

            _prodAerialCombatP2.gameObject.SetActive(true);
            Object.Destroy(_prodAerialCombatP1.gameObject);
            cutInCamera.cullingMask              = (Generics.Layers.UI2D | Generics.Layers.CutIn);
            cutInEffectCamera.cullingMask        = Generics.Layers.CutIn;
            cutInCamera.depth                    = 5f;
            cutInEffectCamera.depth              = 4f;
            cutInEffectCamera.glowEffect.enabled = true;
            BattleTaskManager.GetBattleCameras().SetSplitCameras2D(isSplit: false);
            SlotitemModel_Battle touchPlane  = _clsKoukuu1.GetTouchPlane(is_friend: true);
            SlotitemModel_Battle touchPlane2 = _clsKoukuu1.GetTouchPlane(is_friend: false);

            _prodAerialTouchPlane = ProdAerialTouchPlane.Instantiate(Resources.Load <ProdAerialTouchPlane>("Prefabs/Battle/Production/AerialCombat/ProdAerialTouchPlane"), cutInCamera2.transform);
            _prodAerialTouchPlane.transform.localPosition = Vector3.zero;
            _prodAerialTouchPlane.Init(touchPlane, touchPlane2);
            _prodAerialCombatP2.Play(_onAircraftCombatFinished, dicFriendBattleShips, dicEnemyBattleShips);
            return(false);
        }
Example #2
0
        private bool _initAircraftCombatPhase2(object data)
        {
            BattleCutInCamera              cutInCamera          = BattleTaskManager.GetBattleCameras().cutInCamera;
            BattleCutInCamera              cutInCamera2         = BattleTaskManager.GetBattleCameras().cutInCamera;
            BattleCutInEffectCamera        cutInEffectCamera    = BattleTaskManager.GetBattleCameras().cutInEffectCamera;
            Dictionary <int, UIBattleShip> dicFriendBattleShips = BattleTaskManager.GetBattleShips().dicFriendBattleShips;
            Dictionary <int, UIBattleShip> dicEnemyBattleShips  = BattleTaskManager.GetBattleShips().dicEnemyBattleShips;

            _prodAerialCombatP2.gameObject.SetActive(true);
            cutInCamera.cullingMask              = (Generics.Layers.UI2D | Generics.Layers.CutIn);
            cutInEffectCamera.cullingMask        = Generics.Layers.CutIn;
            cutInCamera.depth                    = 5f;
            cutInEffectCamera.depth              = 4f;
            cutInEffectCamera.glowEffect.enabled = true;
            BattleTaskManager.GetBattleCameras().SetSplitCameras2D(isSplit: false);
            SlotitemModel_Battle touchPlane  = _clsKoukuu.GetTouchPlane(is_friend: true);
            SlotitemModel_Battle touchPlane2 = _clsKoukuu.GetTouchPlane(is_friend: false);

            _prodAerialTouchPlane.SetActive(isActive: true);
            _prodAerialTouchPlane.Init(touchPlane, touchPlane2);
            _prodAerialCombatP2.Play(_onAircraftCombatFinished, dicFriendBattleShips, dicEnemyBattleShips);
            Object.Destroy(_prodAerialCombatP1.gameObject);
            return(false);
        }