public override IProcessState Execute(BattleManager battleManager) { AllEventManager eventMgr = AllEventManager.GetInstance(); AllSceneManager sceneMgr = AllSceneManager.GetInstance(); //SE battleManager.GetInputSoundProvider().SelectEnter(); battleManager.InactiveUiMonsterTradeSelectCommand(); sceneMgr.inputProvider_ = new InactiveInputProvider(); //フェードアウト eventMgr.EventSpriteRendererSet( sceneMgr.GetPublicFrontScreen().GetEventScreenSprite() , null , new Color(sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.r, sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.g, sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.b, 255) ); eventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); eventMgr.AllUpdateEventExecute(0.4f); //シーンの切り替え MonsterMenuManager.SetProcessStateProvider(new MonsterMenuSceneBattleProcessStateProvider()); eventMgr.SceneChangeEventSet(SceneState.MonsterMenu, SceneChangeMode.Slide); return(new CommandSelectProcess()); }
public override void SelectEnter(MapManager mapManager) { AllEventManager eventMgr = AllEventManager.GetInstance(); AllSceneManager sceneMgr = AllSceneManager.GetInstance(); //操作の変更 sceneMgr.inputProvider_ = new InactiveInputProvider(); //選択肢の非表示 mapManager.GetCommandParts().gameObject.SetActive(false); //選択肢の初期化 mapManager.GetCommandParts().SelectReset(new Vector3(-0.6f, 0.85f, -4)); //フェードアウト eventMgr.EventSpriteRendererSet( sceneMgr.GetPublicFrontScreen().GetEventScreenSprite() , null , new Color(sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.r, sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.g, sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.b, 255) ); eventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); eventMgr.AllUpdateEventExecute(0.4f); //シーンの切り替え MonsterMenuManager.SetProcessStateProvider(new MonsterMenuSceneNormalProcessStateProvider()); eventMgr.SceneChangeEventSet(SceneState.MonsterMenu, SceneChangeMode.Slide); }
public void SceneStart() { AllEventManager eventMgr = AllEventManager.GetInstance(); AllSceneManager sceneMgr = AllSceneManager.GetInstance(); novelWindowParts_.GetNovelBlinkIconParts().GetNovelBlinkIconEventSprite().blinkTimeRegulation_ = 0.5f; novelWindowParts_.GetNovelBlinkIconParts().GetNovelBlinkIconEventSprite().GetBlinkState().state_ = UpdateSpriteRendererProcessBlink.In; PlayerTrainerData.GetInstance().prepareContinue_ = true; //フェードイン eventMgr.EventSpriteRendererSet( sceneMgr.GetPublicFrontScreen().GetEventScreenSprite() , null , new Color(sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.r, sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.g, sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.b, 0) ); eventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); eventMgr.AllUpdateEventExecute(); //ウェイト eventMgr.EventWaitSet(2.0f); //ノベル処理 { string context = ResourcesTextsLoader.GetInstance().GetTexts("GameContinue/GameContinue1"); EventMoveMap.NovelEvent(novelWindowParts_, context); } //ウェイト eventMgr.EventWaitSet(sceneMgr.GetEventWaitTime()); //フェードアウト eventMgr.EventSpriteRendererSet( sceneMgr.GetPublicFrontScreen().GetEventScreenSprite() , null , new Color(0, 0, 0, 1) ); eventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); eventMgr.AllUpdateEventExecute(0.4f); //イベントの最後 //シーンの切り替え MonsterMenuManager.SetProcessStateProvider(new MonsterMenuSceneNormalProcessStateProvider()); eventMgr.SceneChangeEventSet(SceneState.MonsterMenu, SceneChangeMode.Slide); }
public override BugMenuSceneProcess Update(BugMenuManager bugMenuManager) { AllEventManager eventMgr = AllEventManager.GetInstance(); AllSceneManager sceneMgr = AllSceneManager.GetInstance(); PlayerTrainerData playerData = PlayerTrainerData.GetInstance(); eventMgr.EventUpdate(); if (sceneMgr.inputProvider_.UpSelect() || sceneMgr.inputProvider_.MouseWheelValue() > 0) { //表示する技がまだあったら if (skillSelectNum_ > 0) { //SE bugMenuManager.GetInputSoundProvider().UpSelect(); --skillSelectNum_; //一番上からスクロールさせようとしたら if (bugMenuManager.GetCommandParts().SelectNumber() == 0) { //技の名前を更新する for (int i = skillSelectNum_, j = 0; i < skillSelectNum_ + bugMenuManager.GetCommandParts().GetCommandWindowTextsCount(); ++i) { bugMenuManager.GetCommandParts().CommandWindowChoiceTextChange(j, " " + bugMenuManager.GetSkillTradeActiveSkills(i).skillName_); ++j; } //カーソルを戻す //bugMenuManager.GetCommandParts().CommandSelect(1, new Vector3(0, -1.0f, 0)); //downCursorの表示 bugMenuManager.GetDownCursor().gameObject.SetActive(true); if (skillSelectNum_ == 0) { //upCursorの表示 bugMenuManager.GetUpCursor().gameObject.SetActive(false); } } //選択肢の処理 bugMenuManager.GetCommandParts().CommandSelectUp(new Vector3(0, 1.0f, 0)); //技の情報の反映 bugMenuManager.GetInfoFrameParts().SkillInfoReflect(bugMenuManager.GetSkillTradeActiveSkills(skillSelectNum_)); } } else if (sceneMgr.inputProvider_.DownSelect() || sceneMgr.inputProvider_.MouseWheelValue() < 0) { //表示する技がまだあったら if (skillSelectNum_ < bugMenuManager.GetSkillTradeActiveSkillsCount() - 1) { //SE bugMenuManager.GetInputSoundProvider().DownSelect(); ++skillSelectNum_; //一番下からスクロールさせようとしたら if (bugMenuManager.GetCommandParts().SelectNumber() == bugMenuManager.GetCommandParts().GetCommandWindowTextsCount() - 1) { //技の名前を更新する for (int i = skillSelectNum_ - bugMenuManager.GetCommandParts().GetCommandWindowTextsCount() + 1, j = 0; i < skillSelectNum_ + 1; ++i) { bugMenuManager.GetCommandParts().CommandWindowChoiceTextChange(j, " " + bugMenuManager.GetSkillTradeActiveSkills(i).skillName_); ++j; } //カーソルを戻す //bugMenuManager.GetCommandParts().CommandSelect(-1, new Vector3(0, 1.0f, 0)); //upCursorの表示 bugMenuManager.GetUpCursor().gameObject.SetActive(true); if (skillSelectNum_ == bugMenuManager.GetSkillTradeActiveSkillsCount() - 1) { //downCursorの表示 bugMenuManager.GetDownCursor().gameObject.SetActive(false); } } //選択肢の処理 bugMenuManager.GetCommandParts().CommandSelectDown(new Vector3(0, -1.0f, 0)); //技の情報の反映 bugMenuManager.GetInfoFrameParts().SkillInfoReflect(bugMenuManager.GetSkillTradeActiveSkills(skillSelectNum_)); } } else if (sceneMgr.inputProvider_.RightSelect()) { } else if (sceneMgr.inputProvider_.LeftSelect()) { } else if (sceneMgr.inputProvider_.SelectEnter() || sceneMgr.inputProvider_.SelectMouseLeftTrigger()) { //技を習得できるか if (playerData.GetMonsterDatas(MonsterMenuManager.skillTradeSelectMonsterNumber_).SkillTradeCheck(bugMenuManager.GetSkillTradeActiveSkills(skillSelectNum_).elementType_.state_)) { //SE bugMenuManager.GetInputSoundProvider().SelectEnter(); MonsterMenuManager.skillTradeActive_ = true; MonsterMenuManager.skillTradeSkillData_ = new SkillData((SkillDataNumber)bugMenuManager.GetSkillTradeActiveSkills(skillSelectNum_).skillNumber_); sceneMgr.inputProvider_ = new InactiveInputProvider(); //フェードアウト eventMgr.EventSpriteRendererSet( sceneMgr.GetPublicFrontScreen().GetEventScreenSprite() , null , new Color(sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.r, sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.g, sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.b, 255) ); eventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); eventMgr.AllUpdateEventExecute(0.4f); //シーンの切り替え MonsterMenuManager.SetProcessStateProvider(new MonsterMenuSceneNormalProcessStateProvider()); eventMgr.SceneChangeEventSet(SceneState.MonsterMenu, SceneChangeMode.Continue); } } else if (sceneMgr.inputProvider_.SelectBack() || sceneMgr.inputProvider_.SelectMouseRightTrigger()) { MonsterMenuManager.skillTradeActive_ = true; MonsterMenuManager.skillTradeSkillData_ = null; sceneMgr.inputProvider_ = new InactiveInputProvider(); //フェードアウト eventMgr.EventSpriteRendererSet( sceneMgr.GetPublicFrontScreen().GetEventScreenSprite() , null , new Color(sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.r, sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.g, sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.b, 255) ); eventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); eventMgr.AllUpdateEventExecute(0.4f); //シーンの切り替え MonsterMenuManager.SetProcessStateProvider(new MonsterMenuSceneNormalProcessStateProvider()); eventMgr.SceneChangeEventSet(SceneState.MonsterMenu, SceneChangeMode.Continue); } else if (sceneMgr.inputProvider_.SelectNovelWindowActive()) { } else if (sceneMgr.inputProvider_.SelectMenu()) { } return(bugMenuManager.GetProcessProvider().state_); }
//倒れた時の処理 public override void MonsterDownEventSet(BattleManager manager) { battleActiveMonsterSize_ -= 1; //dreamPoint_ += 45; //戦闘のモンスターをダウンさせる monsterDatas_[0].battleActive_ = false; //ウェイト AllEventManager.GetInstance().EventWaitSet(1.0f); //モンスターの画像の非表示 AllEventManager.GetInstance().UpdateGameObjectSet(manager.GetPlayerMonsterParts().GetEventGameObject()); AllEventManager.GetInstance().UpdateGameObjectsActiveSetExecute(false); //SE AllEventManager.GetInstance().SEAudioPlayOneShotEventSet(ResourcesSoundsLoader.GetInstance().GetSounds(SoundsPathSupervisor.GetInstance().GetPathMonsterDown())); //ウェイト AllEventManager.GetInstance().EventWaitSet(manager.GetEventWaitTime()); ////DPの演出のイベント //manager.StatusInfoPartsDPEffectEventSet(this, manager.GetPlayerStatusInfoParts()); // ////ウェイト //AllEventManager.GetInstance().EventWaitSet(manager.GetEventWaitTime()); //モンスターのステータスインフォの退場 AllEventManager.GetInstance().UpdateGameObjectSet(manager.GetPlayerStatusInfoParts().GetEventGameObject(), new Vector3(-13.5f, manager.GetPlayerStatusInfoParts().transform.position.y, manager.GetPlayerStatusInfoParts().transform.position.z)); AllEventManager.GetInstance().UpdateGameObjectUpdateExecuteSet(UpdateGameObjectEventManagerExecute.PosMove); AllEventManager.GetInstance().AllUpdateEventExecute(0.2f); //文字列の処理 AllEventManager.GetInstance().EventTextSet(manager.GetNovelWindowParts().GetNovelWindowEventText(), monsterDatas_[0].uniqueName_ + "は たおれた!"); AllEventManager.GetInstance().EventTextsUpdateExecuteSet(EventTextEventManagerExecute.CharaUpdate); AllEventManager.GetInstance().AllUpdateEventExecute(manager.GetEventContextUpdateTime()); //ウェイト AllEventManager.GetInstance().EventWaitSet(manager.GetEventWaitTime()); if (battleActiveMonsterSize_ == 0) { //DPゲージの登場 AllEventManager.GetInstance().UpdateGameObjectSet(manager.GetPlayerDreamPointInfoParts().GetUpdateGameObject()); AllEventManager.GetInstance().UpdateGameObjectSet(manager.GetEnemyDreamPointInfoParts().GetUpdateGameObject()); AllEventManager.GetInstance().UpdateGameObjectsActiveSetExecute(true); //BGMの再生 AllEventManager.GetInstance().BGMAudioClipChangeEventSet(ResourcesSoundsLoader.GetInstance().GetSounds(SoundsPathSupervisor.GetInstance().GetPathDreamers_Lose())); AllEventManager.GetInstance().BGMAudioPlayEventSet(); //文字列の処理 AllEventManager.GetInstance().EventTextSet( manager.GetNovelWindowParts().GetNovelWindowEventText() , EnemyTrainerData.GetInstance().GetJob() + "の " + EnemyTrainerData.GetInstance().GetName() + "\n" + "との しょうぶに まけた"); AllEventManager.GetInstance().EventTextsUpdateExecuteSet(EventTextEventManagerExecute.CharaUpdate); AllEventManager.GetInstance().AllUpdateEventExecute(manager.GetEventContextUpdateTime()); //ウェイト AllEventManager.GetInstance().EventWaitSet(manager.GetEventWaitTime() * 2); //エネミーの入場 AllEventManager.GetInstance().UpdateGameObjectSet(manager.GetEnemyParts().GetEventGameObject(), new Vector3(7.5f, manager.GetEnemyParts().transform.position.y, manager.GetEnemyParts().transform.position.z)); AllEventManager.GetInstance().UpdateGameObjectUpdateExecuteSet(UpdateGameObjectEventManagerExecute.PosMove); AllEventManager.GetInstance().AllUpdateEventExecute(0.8f); //ウェイト AllEventManager.GetInstance().EventWaitSet(manager.GetEventWaitTime() * 2); //フェードアウト AllEventManager.GetInstance().EventSpriteRendererSet( AllSceneManager.GetInstance().GetPublicFrontScreen().GetEventScreenSprite() , null , new Color(AllSceneManager.GetInstance().GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.r, AllSceneManager.GetInstance().GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.g, AllSceneManager.GetInstance().GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.b, 255) ); AllEventManager.GetInstance().EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); AllEventManager.GetInstance().AllUpdateEventExecute(2.0f); //シーンの切り替え AllEventManager.GetInstance().SceneChangeEventSet(SceneState.Map, SceneChangeMode.Continue); //負けの設定 PlayerTrainerData.GetInstance().battleEnd_ = true; PlayerTrainerData.GetInstance().battleResult_ = false; //データの初期化 PlayerBattleData.ReleaseInstance(); EnemyTrainerData.ReleaseInstance(); EnemyBattleData.ReleaseInstance(); return; } //シーンの切り替え MonsterMenuManager.SetProcessStateProvider(new MonsterMenuSceneBattleProcessStateProvider()); AllEventManager.GetInstance().SceneChangeEventSet(SceneState.MonsterMenu, SceneChangeMode.Slide); }