protected override bool UnInit() { this._clsKoukuu1 = null; this._clsKoukuu2 = null; if (this._prodAerialCutinP != null) { this._prodAerialCutinP.get_gameObject().Discard(); } this._prodAerialCutinP = null; if (this._prodAerialCombatP1 != null) { this._prodAerialCombatP1.get_gameObject().Discard(); } this._prodAerialCombatP1 = null; if (this._prodAerialCombatP2 != null) { this._prodAerialCombatP2.get_gameObject().Discard(); } this._prodAerialCombatP2 = null; if (this._prodAerialSecondP1 != null) { this._prodAerialSecondP1.get_gameObject().Discard(); } this._prodAerialSecondP1 = null; if (this._prodAerialSecondP2 != null) { this._prodAerialSecondP2.get_gameObject().Discard(); } this._prodAerialSecondP2 = null; if (this._clsState != null) { this._clsState.Clear(); } return(true); }
private bool _initAerialCombatCutIn(object data) { BattleCameras battleCameras = BattleTaskManager.GetBattleCameras(); BattleCutInCamera cutInCamera = battleCameras.cutInCamera; cutInCamera.isCulling = true; this._prodAerialCutinP = ProdAerialSecondCutIn.Instantiate(PrefabFile.Load <ProdAerialSecondCutIn>(PrefabFileInfos.BattleProdAerialSecondCutIn), this._clsKoukuu1, cutInCamera.get_transform()); this._prodAerialCombatP1 = ProdAerialCombatP1.Instantiate(PrefabFile.Load <ProdAerialCombatP1>(PrefabFileInfos.BattleProdAerialCombatP1), this._clsKoukuu1, cutInCamera.get_transform().get_parent(), this._prodAerialCutinP._chkCutInType()); this._prodAerialCombatP1.get_gameObject().SetActive(false); this._prodAerialCombatP2 = ProdAerialCombatP2.Instantiate(PrefabFile.Load <ProdAerialCombatP2>(PrefabFileInfos.BattleProdAerialCombatP2), this._clsKoukuu1, cutInCamera.get_transform()); this._prodAerialCombatP2.CreateHpGauge(FleetType.Friend); this._prodAerialCombatP2.get_gameObject().SetActive(false); this._prodAerialCutinP.Play(new Action(this._onAerialCombatCutInFinished)); return(false); }