protected override bool UnInit() { base.UnInit(); _prodShellingFormationJudge = null; if (_prodShellingAttack != null) { _prodShellingAttack.Dispose(); } _prodShellingAttack = null; _clsNowHougekiList = null; Mem.DelIDisposableSafe(ref _prodShellingTorpedo); return(true); }
protected override bool Init() { if (!BattleTaskManager.GetBattleManager().IsExistHougekiPhase_Day()) { ImmediateTermination(); EndPhase(BattleUtils.NextPhase(BattlePhase.Shelling)); } else { _listCmdActionList = BattleTaskManager.GetBattleManager().GetHougekiData_Day(); _nCurrentShellingCnt = 0; _actOnFleetAction = null; _prodShellingFormationJudge = ProdShellingFormationJudge.Instantiate(((Component)BattleTaskManager.GetPrefabFile().prefabProdShellingFormationJudge).GetComponent <ProdShellingFormationJudge>(), BattleTaskManager.GetBattleManager(), BattleTaskManager.GetBattleCameras().cutInCamera.transform); _prodShellingAttack = new ProdShellingAttack(); _clsState = new StatementMachine(); _clsState.AddState(InitFormationJudge, UpdateFormationJudge); } return(true); }