protected override bool Init() { this._clsSakuteki = BattleTaskManager.GetBattleManager().GetSakutekiData(); if (this._clsSakuteki == null || !BattleTaskManager.GetBattleManager().IsExistSakutekiData()) { base.ImmediateTermination(); this.EndPhase(BattleUtils.NextPhase(BattlePhase.Detection)); return(true); } this._clsState = new StatementMachine(); this._clsState.AddState(new StatementMachine.StatementMachineInitialize(this.InitMoveCameraTo2D), new StatementMachine.StatementMachineUpdate(this.UpdateMoveCameraTo2D)); Transform transform = BattleTaskManager.GetBattleCameras().cutInCamera.get_transform(); this._prodDetectionCutIn = ProdDetectionCutIn.Instantiate(BattleTaskManager.GetPrefabFile().prefabProdDetectionCutIn.GetComponent <ProdDetectionCutIn>(), transform, this._clsSakuteki); this._prodDetectionResultCutIn = ProdDetectionResultCutIn.Instantiate(BattleTaskManager.GetPrefabFile().prefabProdDetectionResultCutIn.GetComponent <ProdDetectionResultCutIn>(), transform, this._clsSakuteki); this._iResult = this._prodDetectionResultCutIn.detectionResult; return(true); }
protected override bool Init() { _clsSakuteki = BattleTaskManager.GetBattleManager().GetSakutekiData(); if (_clsSakuteki == null || !BattleTaskManager.GetBattleManager().IsExistSakutekiData()) { ImmediateTermination(); EndPhase(BattleUtils.NextPhase(BattlePhase.Detection)); return(true); } _clsState = new StatementMachine(); _clsState.AddState(InitMoveCameraTo2D, UpdateMoveCameraTo2D); Transform transform = BattleTaskManager.GetBattleCameras().cutInCamera.transform; _prodDetectionCutIn = ProdDetectionCutIn.Instantiate(((Component)BattleTaskManager.GetPrefabFile().prefabProdDetectionCutIn).GetComponent <ProdDetectionCutIn>(), transform, _clsSakuteki); _prodDetectionResultCutIn = ProdDetectionResultCutIn.Instantiate(((Component)BattleTaskManager.GetPrefabFile().prefabProdDetectionResultCutIn).GetComponent <ProdDetectionResultCutIn>(), transform, _clsSakuteki); _iResult = _prodDetectionResultCutIn.detectionResult; return(true); }