public void SceneStart() { AllEventManager eventMgr = AllEventManager.GetInstance(); AllSceneManager sceneMgr = AllSceneManager.GetInstance(); //依存性注入 inputSoundProvider_.state_ = SaveDataSceneInputSoundState.Normal; //初期化 dataSelectInfoSprite_.sprite = ResourcesGraphicsLoader.GetInstance().GetGraphics(GraphicsPathSupervisor.GetInstance().GetPathGameStartInfo()); commandParts_.SelectReset(new Vector3(3.32f, 0.81f, -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, 0) ); eventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); eventMgr.AllUpdateEventExecute(0.4f); //イベントの最後 eventMgr.EventFinishSet(); }
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()); }
private static void MapDescend(EventMoveMap eventMoveMap, MapManager mapManager) { AllEventManager allEventMgr = AllEventManager.GetInstance(); AllSceneManager allSceneMgr = AllSceneManager.GetInstance(); PlayerTrainerData playerTrainerData = PlayerTrainerData.GetInstance(); EnemyTrainerData enemyTrainerData = EnemyTrainerData.GetInstance(); PlayerBattleData playerBattleData = PlayerBattleData.GetInstance(); EnemyBattleData enemyBattleData = EnemyBattleData.GetInstance(); playerTrainerData.nowMapFloor_ -= 1; mapManager.GetPlayerMoveMap().SetStartPos(new Vector3(9, 9.2f, -1)); //フェードアウト allEventMgr.EventSpriteRendererSet( allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite() , null , new Color(allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.r, allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.g, allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.b, 255) ); allEventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); allEventMgr.AllUpdateEventExecute(0.4f); //シーンの切り替え allEventMgr.SceneChangeEventSet(SceneState.Map, SceneChangeMode.Change); }
public override void SelectEnter(MapManager mapManager) { AllSceneManager sceneMgr = AllSceneManager.GetInstance(); AllEventManager eventMgr = AllEventManager.GetInstance(); //操作の変更 sceneMgr.inputProvider_ = new InactiveInputProvider(); //プレイヤーデータの初期化 PlayerTrainerData.ReleaseInstance(); //選択肢の初期化 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(sceneMgr.GetEventWaitTime()); //イベントの最後 //シーンの切り替え eventMgr.SceneChangeEventSet(SceneState.Title, SceneChangeMode.Change); }
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 override void Execute(MonsterMenuManager monsterMenuManager) { AllSceneManager sceneMgr = AllSceneManager.GetInstance(); AllEventManager eventMgr = AllEventManager.GetInstance(); //先頭がダウンしていたら if (!PlayerBattleData.GetInstance().GetMonsterDatas(0).battleActive_) { PlayerBattleData.GetInstance().changeMonsterNumber_ = monsterMenuManager.selectMonsterNumber_; PlayerBattleData.GetInstance().changeMonsterSkillNumber_ = monsterMenuManager.GetSkillCommandParts().SelectNumber(); PlayerBattleData.GetInstance().changeMonsterActive_ = true; //操作の変更 sceneMgr.inputProvider_ = new InactiveInputProvider(); //技の選択肢の初期化 monsterMenuManager.GetSkillCommandParts().SelectReset(new Vector3(-5.29f, 0.82f, 2)); //フェードアウト 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); //シーンの切り替え eventMgr.SceneChangeEventSet(SceneState.Battle, SceneChangeMode.Continue); } else { if (PlayerBattleData.GetInstance().GetMonsterDatas(monsterMenuManager.selectMonsterNumber_).battleActive_ && PlayerBattleData.GetInstance().GetMonsterDatas(monsterMenuManager.selectMonsterNumber_).tribesData_.monsterNumber_ != (int)MonsterTribesDataNumber.None) { monsterMenuManager.GetMonsterActionCommandParts().gameObject.SetActive(false); monsterMenuManager.GetNowProcessState().state_ = MonsterMenuSceneProcess.SkillSelect; //技の情報の反映 monsterMenuManager.GetSkillInfoFrameParts().SkillInfoReflect(PlayerBattleData.GetInstance().GetMonsterDatas(monsterMenuManager.selectMonsterNumber_).GetSkillDatas(0)); //技の選択肢の初期化 monsterMenuManager.GetSkillCommandParts().commandWindowChoicesColliderActive(); monsterMenuManager.GetSkillCommandParts().GetCursorParts().gameObject.SetActive(true); //モンスターの交換中 monsterMenuManager.monsterTradeSelectSkill_ = true; } } }
private static void BattleLose(EventMoveMap eventMoveMap, MapManager mapManager) { AllEventManager allEventMgr = AllEventManager.GetInstance(); AllSceneManager allSceneMgr = AllSceneManager.GetInstance(); PlayerTrainerData playerTrainerData = PlayerTrainerData.GetInstance(); EnemyTrainerData enemyTrainerData = EnemyTrainerData.GetInstance(); mapManager.GetNovelWindowParts().GetNovelBlinkIconParts().GetNovelBlinkIconEventSprite().blinkTimeRegulation_ = 0.5f; mapManager.GetNovelWindowParts().GetNovelBlinkIconParts().GetNovelBlinkIconEventSprite().GetBlinkState().state_ = UpdateSpriteRendererProcessBlink.In; //BGMの再生 allSceneMgr.GetPublicAudioParts().GetBGMAudioSource().clip = ResourcesSoundsLoader.GetInstance().GetSounds(SoundsPathSupervisor.GetInstance().GetPathDreamers_Map()); allSceneMgr.GetPublicAudioParts().GetBGMAudioSource().Play(); //手持ちモンスターの回復 for (int i = 0; i < playerTrainerData.GetHaveMonsterSize(); ++i) { playerTrainerData.GetMonsterDatas(i).battleActive_ = true; playerTrainerData.GetMonsterDatas(i).nowHitPoint_ = playerTrainerData.GetMonsterDatas(i).RealHitPoint(); } //ノベル処理 { string context = ResourcesTextsLoader.GetInstance().GetTexts("Man/BattleLose1"); EventMoveMap.NovelEvent(mapManager.GetNovelWindowParts(), context, mapManager.GetCharacterEventSprite()); } //フェードアウト allEventMgr.EventSpriteRendererSet( allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite() , null , new Color(0, 0, 0, 1) ); allEventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); allEventMgr.AllUpdateEventExecute(0.4f); //ウェイト allEventMgr.EventWaitSet(allSceneMgr.GetEventWaitTime() * 2); //フェードイン allEventMgr.EventSpriteRendererSet( allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite() , null , new Color(0, 0, 0, 0) ); allEventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); allEventMgr.AllUpdateEventExecute(0.4f); //イベントの最後 allEventMgr.EventFinishSet(); }
private static void BattleLose(EventMoveMap eventMoveMap, MapManager mapManager) { AllEventManager allEventMgr = AllEventManager.GetInstance(); AllSceneManager allSceneMgr = AllSceneManager.GetInstance(); PlayerTrainerData playerTrainerData = PlayerTrainerData.GetInstance(); EnemyTrainerData enemyTrainerData = EnemyTrainerData.GetInstance(); mapManager.GetNovelWindowParts().GetNovelBlinkIconParts().GetNovelBlinkIconEventSprite().blinkTimeRegulation_ = 0.5f; mapManager.GetNovelWindowParts().GetNovelBlinkIconParts().GetNovelBlinkIconEventSprite().GetBlinkState().state_ = UpdateSpriteRendererProcessBlink.In; //BGMの再生 AllSceneManager.GetInstance().GetPublicAudioParts().GetBGMAudioSource().clip = ResourcesSoundsLoader.GetInstance().GetSounds(SoundsPathSupervisor.GetInstance().GetPathDreamers_Map()); AllSceneManager.GetInstance().GetPublicAudioParts().GetBGMAudioSource().Play(); //手持ちモンスターの回復 for (int i = 0; i < playerTrainerData.GetHaveMonsterSize(); ++i) { playerTrainerData.GetMonsterDatas(i).battleActive_ = true; playerTrainerData.GetMonsterDatas(i).nowHitPoint_ = playerTrainerData.GetMonsterDatas(i).RealHitPoint(); } //ノベル処理 { string context = ResourcesTextsLoader.GetInstance().GetTexts("FinalDocter/BattleLose1"); EventMoveMap.NovelEvent(mapManager.GetNovelWindowParts(), context, mapManager.GetCharacterEventSprite()); } //プレイヤーデータの初期化 PlayerTrainerData.ReleaseInstance(); //選択肢の初期化 mapManager.GetCommandParts().gameObject.SetActive(false); mapManager.GetCommandParts().SelectReset(new Vector3(-0.6f, 0.85f, -4)); //フェードアウト allEventMgr.EventSpriteRendererSet( allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite() , null , new Color(allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.r, allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.g, allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.b, 255) ); allEventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); allEventMgr.AllUpdateEventExecute(3.5f); //イベントの最後 //シーンの切り替え //allEventMgr.SceneChangeEventSet(SceneState.Title, SceneChangeMode.Change); //ゲームの終了 t13.UnityUtil.GameQuit(); }
private static void BattleVictory(EventMoveMap eventMoveMap, MapManager mapManager) { AllEventManager allEventMgr = AllEventManager.GetInstance(); AllSceneManager allSceneMgr = AllSceneManager.GetInstance(); PlayerTrainerData playerTrainerData = PlayerTrainerData.GetInstance(); EnemyTrainerData enemyTrainerData = EnemyTrainerData.GetInstance(); mapManager.GetNovelWindowParts().GetNovelBlinkIconParts().GetNovelBlinkIconEventSprite().blinkTimeRegulation_ = 0.5f; mapManager.GetNovelWindowParts().GetNovelBlinkIconParts().GetNovelBlinkIconEventSprite().GetBlinkState().state_ = UpdateSpriteRendererProcessBlink.In; //BGMの再生 AllSceneManager.GetInstance().GetPublicAudioParts().GetBGMAudioSource().clip = ResourcesSoundsLoader.GetInstance().GetSounds(SoundsPathSupervisor.GetInstance().GetPathDreamers_Map()); AllSceneManager.GetInstance().GetPublicAudioParts().GetBGMAudioSource().Play(); //手持ちモンスターの回復 for (int i = 0; i < playerTrainerData.GetHaveMonsterSize(); ++i) { playerTrainerData.GetMonsterDatas(i).battleActive_ = true; playerTrainerData.GetMonsterDatas(i).nowHitPoint_ = playerTrainerData.GetMonsterDatas(i).RealHitPoint(); } //ノベル処理 { string context = ResourcesTextsLoader.GetInstance().GetTexts("FinalDocter/BattleVictory1"); EventMoveMap.NovelEvent(mapManager.GetNovelWindowParts(), context, mapManager.GetCharacterEventSprite()); } //フェードアウト allEventMgr.EventSpriteRendererSet( allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite() , null , new Color(allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.r, allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.g, allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.b, 255) ); allEventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); allEventMgr.AllUpdateEventExecute(2.0f); //イベントの最後 //シーンの切り替え if (playerTrainerData.clearTimes_ > 0) { allEventMgr.SceneChangeEventSet(SceneState.GameContinue, SceneChangeMode.Change); } else { allEventMgr.SceneChangeEventSet(SceneState.Ending, SceneChangeMode.Change); } }
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 IProcessState Update(BattleManager mgr) { AllEventManager eventMgr = AllEventManager.GetInstance(); AllSceneManager sceneMgr = AllSceneManager.GetInstance(); //交換されていたら if (PlayerBattleData.GetInstance().changeMonsterActive_) { //フェードイン 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(0.4f); //交換イベント PlayerBattleData.GetInstance().MonsterChangeEventSet(mgr); //イベントの最後 eventMgr.EventFinishSet(); PlayerBattleData.GetInstance().changeMonsterActive_ = false; } if (AllEventManager.GetInstance().EventUpdate() && PlayerBattleData.GetInstance().GetMonsterDatas(0).battleActive_) { //ウィンドウの非表示 mgr.GetNovelWindowParts().gameObject.SetActive(false); mgr.GetPlayerStatusInfoParts().ProcessIdleStart(); mgr.GetPlayerMonsterParts().ProcessIdleStart(); mgr.ActiveUiStartCommand(); sceneMgr.inputProvider_ = new KeyBoardNormalTriggerInputProvider(); //攻撃技の反映 mgr.GetAttackCommandParts().MonsterDataReflect(PlayerBattleData.GetInstance().GetMonsterDatas(0), EnemyBattleData.GetInstance().GetMonsterDatas(0)); return(mgr.nowProcessState().NextProcess()); } return(this); }
private static void TradeAfter(EventMoveMap eventMoveMap, MapManager mapManager) { AllEventManager allEventMgr = AllEventManager.GetInstance(); AllSceneManager allSceneMgr = AllSceneManager.GetInstance(); PlayerTrainerData playerTrainerData = PlayerTrainerData.GetInstance(); EnemyTrainerData enemyTrainerData = EnemyTrainerData.GetInstance(); mapManager.GetNovelWindowParts().GetNovelBlinkIconParts().GetNovelBlinkIconEventSprite().blinkTimeRegulation_ = 0.5f; mapManager.GetNovelWindowParts().GetNovelBlinkIconParts().GetNovelBlinkIconEventSprite().GetBlinkState().state_ = UpdateSpriteRendererProcessBlink.In; //バトル後のイベントへ eventMoveMap.executeEventNum_ = 4; //ノベル処理 { string context = ResourcesTextsLoader.GetInstance().GetTexts("Man/TradeAfter1"); EventMoveMap.NovelEvent(mapManager.GetNovelWindowParts(), context, mapManager.GetCharacterEventSprite()); } //フェードアウト allEventMgr.EventSpriteRendererSet( allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite() , null , new Color(0, 0, 0, 1) ); allEventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); allEventMgr.AllUpdateEventExecute(0.4f); //ウェイト allEventMgr.EventWaitSet(allSceneMgr.GetEventWaitTime()); //フェードイン allEventMgr.EventSpriteRendererSet( allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite() , null , new Color(0, 0, 0, 0) ); allEventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); allEventMgr.AllUpdateEventExecute(0.4f); //イベントの最後 allEventMgr.EventFinishSet(); }
public void SceneStart() { AllEventManager eventMgr = AllEventManager.GetInstance(); AllSceneManager sceneMgr = AllSceneManager.GetInstance(); //依存性注入 processProvider_ = startProcessStateProvider_; processProvider_.state_ = BugMenuSceneProcess.SkillSelect; inputSoundProvider_.state_ = BugMenuSceneInputSoundState.Normal; //文字の初期化 for (int i = 0; i < commandParts_.GetCommandWindowTextsCount(); ++i) { commandParts_.CommandWindowChoiceTextChange(i, "ーー"); } //アップカーソルの初期化 upCursor_.gameObject.SetActive(false); //選択肢の初期化 commandParts_.SelectReset(new Vector3(-7.7f, 1.23f, -1)); commandParts_.commandWindowChoicesColliderInactive(); //初期化 processProvider_.init(this); //フェードイン 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(0.4f); //イベントの最後 //操作の変更 eventMgr.InputProviderChangeEventSet(new KeyBoardNormalTriggerInputProvider()); }
public void SceneUpdate() { AllEventManager.GetInstance().EventUpdate(); if (AllSceneManager.GetInstance().inputProvider_.AnyKeyTrigger()) { AllEventManager eventMgr = AllEventManager.GetInstance(); AllSceneManager sceneMgr = AllSceneManager.GetInstance(); //SE AllSceneManager.GetInstance().GetPublicAudioParts().GetSEAudioSource().volume = 1.0f; inputSoundProvider_.SelectEnter(); pressKeyLogoEventSprite_.blinkTimeRegulation_ = 0.1f; //操作の変更 sceneMgr.inputProvider_ = new InactiveInputProvider(); //スクリーンの非表示 AllSceneManager.GetInstance().GetPublicFrontScreen().GetEventScreenSprite().ProcessReset(); AllSceneManager.GetInstance().GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color = new Color(0, 0, 0, 0); //ウェイト eventMgr.EventWaitSet(1.0f); //フェードアウト 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); //シーンの切り替え eventMgr.SceneChangeEventSet(SceneState.SaveDataSelect, SceneChangeMode.Change); } }
public override void Execute(MonsterMenuManager monsterMenuManager) { AllEventManager eventMgr = AllEventManager.GetInstance(); AllSceneManager sceneMgr = AllSceneManager.GetInstance(); sceneMgr.inputProvider_ = new InactiveInputProvider(); monsterMenuManager.GetSkillActionCommandParts().gameObject.SetActive(false); MonsterMenuManager.skillTradeSelectMonsterNumber_ = monsterMenuManager.selectMonsterNumber_; //フェードアウト 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); //シーンの切り替え BugMenuManager.SetProcessStateProvider(new BugMenuSceneMonsterMenuSkillTradeProcessStateProvider()); eventMgr.SceneChangeEventSet(SceneState.BugMenu, SceneChangeMode.Slide); }
static public void BattleEvent(AudioClip battleBGM) { AllEventManager allEventMgr = AllEventManager.GetInstance(); AllSceneManager allSceneMgr = AllSceneManager.GetInstance(); PlayerTrainerData playerTrainerData = PlayerTrainerData.GetInstance(); EnemyTrainerData enemyTrainerData = EnemyTrainerData.GetInstance(); //白 allEventMgr.EventSpriteRendererSet( allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite() , null , new Color(1, 1, 1, 0)); allEventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); allEventMgr.AllUpdateEventExecute(); //表示 allEventMgr.EventSpriteRendererSet( allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite() , null , new Color(1, 1, 1, 1.0f)); allEventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); allEventMgr.AllUpdateEventExecute(0.3f); //非表示 allEventMgr.EventSpriteRendererSet( allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite() , null , new Color(1, 1, 1, 0)); allEventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); allEventMgr.AllUpdateEventExecute(0.2f); //表示 allEventMgr.EventSpriteRendererSet( allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite() , null , new Color(1, 1, 1, 1.0f)); allEventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); allEventMgr.AllUpdateEventExecute(0.3f); //非表示 allEventMgr.EventSpriteRendererSet( allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite() , null , new Color(1, 1, 1, 0)); allEventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); allEventMgr.AllUpdateEventExecute(0.2f); //表示 allEventMgr.EventSpriteRendererSet( allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite() , null , new Color(1, 1, 1, 1.0f)); allEventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); allEventMgr.AllUpdateEventExecute(0.7f); //ウェイト allEventMgr.EventWaitSet(0.7f); //黒 allEventMgr.EventSpriteRendererSet( allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite() , null , new Color(0, 0, 0, 1.0f)); allEventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); allEventMgr.AllUpdateEventExecute(); //BGMの再生 allEventMgr.BGMAudioClipChangeEventSet(battleBGM); allEventMgr.BGMAudioPlayEventSet(); //シーンの切り替え allEventMgr.SceneChangeEventSet(SceneState.Battle, SceneChangeMode.Slide); }
public void SceneUpdate() { AllEventManager eventMgr = AllEventManager.GetInstance(); AllSceneManager sceneMgr = AllSceneManager.GetInstance(); if (!PlayerTrainerData.GetInstance().prepareContinue_) { novelWindowParts_.GetNovelBlinkIconParts().GetNovelBlinkIconEventSprite().blinkTimeRegulation_ = 0.5f; novelWindowParts_.GetNovelBlinkIconParts().GetNovelBlinkIconEventSprite().GetBlinkState().state_ = UpdateSpriteRendererProcessBlink.In; //データのセーブ SaveDataTrasfer.GetInstance().ContinueDataSave(); //プレイヤーデータの初期化 PlayerTrainerData.ReleaseInstance(); PlayerTrainerData.GetInstance().prepareContinue_ = true; //操作の変更 sceneMgr.inputProvider_ = new KeyBoardNormalTriggerInputProvider(); //フェードイン 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(0.4f); //ノベル処理 { string context = ResourcesTextsLoader.GetInstance().GetTexts("GameContinue/GameContinue2"); EventMoveMap.NovelEvent(novelWindowParts_, context); } //フェードアウト 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(sceneMgr.GetEventWaitTime() * 3); //イベントの最後 //シーンの切り替え eventMgr.SceneChangeEventSet(SceneState.Title, SceneChangeMode.Change); } eventMgr.EventUpdate(); if (sceneMgr.inputProvider_.UpSelect()) { } else if (sceneMgr.inputProvider_.DownSelect()) { } else if (sceneMgr.inputProvider_.RightSelect()) { } else if (sceneMgr.inputProvider_.LeftSelect()) { } else if (sceneMgr.inputProvider_.SelectEnter() || sceneMgr.inputProvider_.SelectMouseLeftTrigger()) { eventMgr.EventTriggerNext(); } else if (sceneMgr.inputProvider_.SelectBack()) { } }
public override MapSceneProcess Update(MapManager mapManager) { AllSceneManager allSceneMgr = AllSceneManager.GetInstance(); AllEventManager allEventMgr = AllEventManager.GetInstance(); PlayerTrainerData playerData = PlayerTrainerData.GetInstance(); AllEventManager.GetInstance().EventUpdate(); if (playerData.battleEnd_) { playerData.battleEnd_ = false; if (playerData.battleResult_) { mapManager.nowEventMoveMap_.executeEventNum_ = 2; } else { mapManager.nowEventMoveMap_.executeEventNum_ = 3; } //操作の変更 allSceneMgr.inputProvider_ = new KeyBoardSelectInactiveTriggerInputProvider(); mapManager.GetPlayerMoveMap().is_move = false; //フェードイン allEventMgr.EventSpriteRendererSet( allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite() , null , new Color(allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.r, allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.g, allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.b, 0) ); allEventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); allEventMgr.AllUpdateEventExecute(0.4f); //戦闘結果イベントの実行 mapManager.nowEventMoveMap_.GetEventSetFuncs()[mapManager.nowEventMoveMap_.executeEventNum_](mapManager.nowEventMoveMap_, mapManager); mapManager.eventBackProcess_ = mapManager.GetProcessProvider().state_; return(MapSceneProcess.EventExecute); } //イベントがエントリーゾーンにあったら if (mapManager.GetPlayerMoveMap().GetEntryZone()._collision_object) { EventMoveMap eventObject = mapManager.GetPlayerMoveMap().GetEntryZone()._collision_object; if (eventObject.GetTriggerState().EventTrigger(mapManager.GetPlayerMoveMap().GetEntryZone(), mapManager.GetPlayerMoveMap())) { eventObject.GetEventSetFuncs()[eventObject.executeEventNum_](eventObject, mapManager); mapManager.GetPlayerMoveMap().is_move = false; //操作の変更 allSceneMgr.inputProvider_ = new KeyBoardSelectInactiveTriggerInputProvider(); mapManager.nowEventMoveMap_ = eventObject; mapManager.eventBackProcess_ = mapManager.GetProcessProvider().state_; return(MapSceneProcess.EventExecute); } } if (allSceneMgr.inputProvider_.UpSelect()) { } else if (allSceneMgr.inputProvider_.DownSelect()) { } else if (allSceneMgr.inputProvider_.RightSelect()) { } else if (allSceneMgr.inputProvider_.LeftSelect()) { } else if (allSceneMgr.inputProvider_.SelectEnter() || allSceneMgr.inputProvider_.SelectMouseLeftTrigger()) { allEventMgr.EventTriggerNext(); } else if (allSceneMgr.inputProvider_.SelectBack()) { } else if (allSceneMgr.inputProvider_.SelectNovelWindowActive()) { } else if (allSceneMgr.inputProvider_.SelectMenu() || allSceneMgr.inputProvider_.SelectMouseRightTrigger()) { //SE mapManager.GetInputSoundProvider().SelectMenu(); mapManager.GetPlayerMoveMap().is_move = false; mapManager.GetCommandParts().gameObject.SetActive(true); //操作の変更 allSceneMgr.inputProvider_ = new KeyBoardNormalTriggerInputProvider(); return(MapSceneProcess.MenuSelect); } return(mapManager.GetProcessProvider().state_); }
public void SceneStart() { AllSceneManager sceneMgr = AllSceneManager.GetInstance(); AllEventManager eventMgr = AllEventManager.GetInstance(); //依存性注入 nowProcessState_ = startProcessStateProvider_; nowProcessState_.state_ = MonsterMenuSceneProcess.MonsterSelect; inputSoundProvider_.state_ = MonsterMenuSceneInputSoundState.MonsterSelect; selectMonsterNumber_ = 0; //モンスターの行動選択肢の初期化 monsterActionCommandParts_.gameObject.SetActive(false); //技の選択肢の初期化 skillCommandParts_.commandWindowChoicesColliderInactive(); //BulletPartsの初期化 t13.UnityUtil.ObjectPosMove(bulletParts_.GetEventStatusInfosParts(0).gameObject, new Vector3(bulletParts_.GetEventStatusInfosParts(0).gameObject.transform.localPosition.x, 3.5f, 5)); t13.UnityUtil.ObjectPosMove(bulletParts_.GetEventStatusInfosParts(1).gameObject, new Vector3(bulletParts_.GetEventStatusInfosParts(1).gameObject.transform.localPosition.x, 3.5f, 5)); t13.UnityUtil.ObjectPosMove(bulletParts_.GetEventStatusInfosParts(2).gameObject, new Vector3(bulletParts_.GetEventStatusInfosParts(2).gameObject.transform.localPosition.x, 2.0f, 5)); t13.UnityUtil.ObjectPosMove(bulletParts_.GetEventStatusInfosParts(3).gameObject, new Vector3(bulletParts_.GetEventStatusInfosParts(3).gameObject.transform.localPosition.x, 0.5f, 5)); t13.UnityUtil.ObjectPosMove(bulletParts_.GetEventStatusInfosParts(4).gameObject, new Vector3(bulletParts_.GetEventStatusInfosParts(4).gameObject.transform.localPosition.x, 0.5f, 5)); //MagazinePartsの初期化 magazineParts_.Initialize(); //StatusInfosPartsの色の変更 for (int i = 0; i < (bulletParts_.GetEventStatusInfosPartsSize() / 2) + 1; ++i) { if (i == 0) { bulletParts_.GetEventStatusInfosParts(i).ProcessStateAllColorUpdateExecute(0, t13.TimeFluctProcess.Liner, new Color32(0, 0, 0, 0)); bulletParts_.GetEventStatusInfosParts(bulletParts_.GetEventStatusInfosPartsSize() - 1 - i).ProcessStateAllColorUpdateExecute(0, t13.TimeFluctProcess.Liner, new Color32(0, 0, 0, 0)); } else { bulletParts_.GetEventStatusInfosParts(i).ProcessStateColorUpdateExecute(0, t13.TimeFluctProcess.Liner, new Color32(0, 0, 0, (byte)(255 / ((i % 2) + 1)))); bulletParts_.GetEventStatusInfosParts(bulletParts_.GetEventStatusInfosPartsSize() - 1 - i).ProcessStateColorUpdateExecute(0, t13.TimeFluctProcess.Liner, new Color32(0, 0, 0, (byte)(255 / ((i % 2) + 1)))); } } //状態異常の非表示 bulletParts_.GetEventStatusInfosParts(0).GetFirstAbnormalStateInfoParts().gameObject.SetActive(false); bulletParts_.GetEventStatusInfosParts(0).GetSecondAbnormalStateInfoParts().gameObject.SetActive(false); bulletParts_.GetEventStatusInfosParts(bulletParts_.GetEventStatusInfosPartsSize() - 1).GetFirstAbnormalStateInfoParts().gameObject.SetActive(false); bulletParts_.GetEventStatusInfosParts(bulletParts_.GetEventStatusInfosPartsSize() - 1).GetSecondAbnormalStateInfoParts().gameObject.SetActive(false); //タイプの非表示 bulletParts_.GetEventStatusInfosParts(0).GetFirstElementInfoParts().gameObject.SetActive(false); bulletParts_.GetEventStatusInfosParts(0).GetSecondElementInfoParts().gameObject.SetActive(false); bulletParts_.GetEventStatusInfosParts(bulletParts_.GetEventStatusInfosPartsSize() - 1).GetFirstElementInfoParts().gameObject.SetActive(false); bulletParts_.GetEventStatusInfosParts(bulletParts_.GetEventStatusInfosPartsSize() - 1).GetSecondElementInfoParts().gameObject.SetActive(false); //スキル情報の初期化 skillInfoFrameParts_.SkillInfoReset(); //初期化 nowProcessState_.init(this); //フェードイン 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(0.4f); //操作の変更 eventMgr.InputProviderChangeEventSet(new KeyBoardNormalInputProvider()); }
public override MonsterMenuSceneProcess Update(MonsterMenuManager monsterMenuManager) { AllSceneManager sceneMgr = AllSceneManager.GetInstance(); AllEventManager eventMgr = AllEventManager.GetInstance(); PlayerBattleData playerData = PlayerBattleData.GetInstance(); eventMgr.EventUpdate(); //カーソルが動いていたら int commandSelectNumber = monsterMenuManager.GetSkillCommandParts().CommandSelectForNumber(new Vector3(6.08f, 0, 0), new Vector3(0, 1.72f, 0)); if (commandSelectNumber > -1) { //SE monsterMenuManager.GetInputSoundProvider().UpSelect(); //技の情報の反映 monsterMenuManager.GetSkillInfoFrameParts().SkillInfoReflect(playerData.GetMonsterDatas(monsterMenuManager.selectMonsterNumber_).GetSkillDatas(monsterMenuManager.GetSkillCommandParts().SelectNumber())); } else if (sceneMgr.inputProvider_.UpSelect()) { //選択肢が動かせたら if (monsterMenuManager.GetSkillCommandParts().CommandSelectUp(new Vector3(0, 1.72f, 0))) { //SE monsterMenuManager.GetInputSoundProvider().UpSelect(); //技の情報の反映 monsterMenuManager.GetSkillInfoFrameParts().SkillInfoReflect(playerData.GetMonsterDatas(monsterMenuManager.selectMonsterNumber_).GetSkillDatas(monsterMenuManager.GetSkillCommandParts().SelectNumber())); } } else if (sceneMgr.inputProvider_.DownSelect()) { //選択肢が動かせたら if (monsterMenuManager.GetSkillCommandParts().CommandSelectDown(new Vector3(0, -1.72f, 0))) { //SE monsterMenuManager.GetInputSoundProvider().DownSelect(); //技の情報の反映 monsterMenuManager.GetSkillInfoFrameParts().SkillInfoReflect(playerData.GetMonsterDatas(monsterMenuManager.selectMonsterNumber_).GetSkillDatas(monsterMenuManager.GetSkillCommandParts().SelectNumber())); } } else if (sceneMgr.inputProvider_.RightSelect()) { //選択肢が動かせたら if (monsterMenuManager.GetSkillCommandParts().CommandSelectRight(new Vector3(6.08f, 0, 0))) { //SE monsterMenuManager.GetInputSoundProvider().RightSelect(); //技の情報の反映 monsterMenuManager.GetSkillInfoFrameParts().SkillInfoReflect(playerData.GetMonsterDatas(monsterMenuManager.selectMonsterNumber_).GetSkillDatas(monsterMenuManager.GetSkillCommandParts().SelectNumber())); } } else if (sceneMgr.inputProvider_.LeftSelect()) { //選択肢が動かせたら if (monsterMenuManager.GetSkillCommandParts().CommandSelectLeft(new Vector3(-6.08f, 0, 0))) { //SE monsterMenuManager.GetInputSoundProvider().LeftSelect(); //技の情報の反映 monsterMenuManager.GetSkillInfoFrameParts().SkillInfoReflect(playerData.GetMonsterDatas(monsterMenuManager.selectMonsterNumber_).GetSkillDatas(monsterMenuManager.GetSkillCommandParts().SelectNumber())); } } else if (sceneMgr.inputProvider_.SelectEnter() || monsterMenuManager.GetSkillCommandParts().MouseLeftButtonTriggerActive()) { //モンスターの交換中なら if (monsterMenuManager.monsterTradeSelectSkill_) { monsterMenuManager.monsterTradeSelectSkill_ = false; PlayerBattleData.GetInstance().changeMonsterNumber_ = monsterMenuManager.selectMonsterNumber_; PlayerBattleData.GetInstance().changeMonsterSkillNumber_ = monsterMenuManager.GetSkillCommandParts().SelectNumber(); PlayerBattleData.GetInstance().changeMonsterActive_ = true; monsterMenuManager.GetSkillCommandParts().GetCursorParts().gameObject.SetActive(false); monsterMenuManager.GetSkillCommandParts().commandWindowChoicesColliderInactive(); //操作の変更 sceneMgr.inputProvider_ = new InactiveInputProvider(); //技の選択肢の初期化 monsterMenuManager.GetSkillCommandParts().SelectReset(new Vector3(-5.29f, 0.82f, 2)); //フェードアウト 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); //シーンの切り替え eventMgr.SceneChangeEventSet(SceneState.Battle, SceneChangeMode.Continue); } } else if (sceneMgr.inputProvider_.SelectBack() || sceneMgr.inputProvider_.SelectMouseRightTrigger()) { monsterMenuManager.monsterTradeSelectSkill_ = false; monsterMenuManager.GetSkillCommandParts().GetCursorParts().gameObject.SetActive(false); monsterMenuManager.GetSkillCommandParts().commandWindowChoicesColliderInactive(); monsterMenuManager.GetSkillInfoFrameParts().SkillInfoReset(); //操作の変更 AllSceneManager.GetInstance().inputProvider_ = new KeyBoardNormalInputProvider(); //技の選択肢の初期化 monsterMenuManager.GetSkillCommandParts().SelectReset(new Vector3(-5.29f, 0.82f, 2)); return(MonsterMenuSceneProcess.MonsterSelect); } return(monsterMenuManager.GetNowProcessState().state_); }
public override MonsterMenuSceneProcess Update(MonsterMenuManager monsterMenuManager) { AllSceneManager sceneMgr = AllSceneManager.GetInstance(); AllEventManager eventMgr = AllEventManager.GetInstance(); PlayerTrainerData playerData = PlayerTrainerData.GetInstance(); eventMgr.EventUpdate(); if (sceneMgr.inputProvider_.UpSelect() || sceneMgr.inputProvider_.MouseWheelValue() > 0) { //SE monsterMenuManager.GetInputSoundProvider().UpSelect(); monsterMenuManager.GetMagazineParts().UpRollMagazineParts(); //操作の変更 eventMgr.InputProviderChangeEventSet(new KeyBoardNormalInputProvider()); monsterMenuManager.GetBulletParts().UpRollStatusInfoParts(); monsterMenuManager.selectMonsterNumber_ += 1; monsterMenuManager.selectMonsterNumber_ %= playerData.GetMonsterDatasLength(); //モンスターのパラメーターの反映 monsterMenuManager.GetParameterInfoFrameParts().MonsterDataReflect(playerData.GetMonsterDatas(monsterMenuManager.selectMonsterNumber_)); //モンスターの技の名前の反映 for (int i = 0; i < monsterMenuManager.GetSkillCommandParts().GetCommandWindowTextsCount(); ++i) { monsterMenuManager.GetSkillCommandParts().CommandWindowChoiceTextChange(i, " " + playerData.GetMonsterDatas(monsterMenuManager.selectMonsterNumber_).GetSkillDatas(i).skillName_); } //最後のステータスインフォパーツに反映 int referMonsterNumber = (monsterMenuManager.selectMonsterNumber_ + 2) % playerData.GetMonsterDatasLength(); if (monsterMenuManager.swapActive_ && referMonsterNumber == monsterMenuManager.swapSelectNumber_) { monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(monsterMenuManager.GetBulletParts().GetEventStatusInfosPartsSize() - 1).MonsterStatusInfoSet(playerData.GetMonsterDatas(referMonsterNumber)); monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(monsterMenuManager.GetBulletParts().GetEventStatusInfosPartsSize() - 1).GetBaseParts().GetBaseSprite().color = new Color32(222, 255, 0, 0); } else { monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(monsterMenuManager.GetBulletParts().GetEventStatusInfosPartsSize() - 1).MonsterStatusInfoSet(playerData.GetMonsterDatas(referMonsterNumber)); monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(monsterMenuManager.GetBulletParts().GetEventStatusInfosPartsSize() - 1).GetBaseParts().GetBaseSprite().color = new Color32(255, 255, 255, 0); } //状態異常の表示、非表示 monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(monsterMenuManager.GetBulletParts().GetEventStatusInfosPartsSize() - 2).GetFirstAbnormalStateInfoParts().gameObject.SetActive(true); monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(monsterMenuManager.GetBulletParts().GetEventStatusInfosPartsSize() - 2).GetSecondAbnormalStateInfoParts().gameObject.SetActive(true); monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(0).GetFirstAbnormalStateInfoParts().gameObject.SetActive(false); monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(0).GetSecondAbnormalStateInfoParts().gameObject.SetActive(false); //タイプの表示、非表示 monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(monsterMenuManager.GetBulletParts().GetEventStatusInfosPartsSize() - 2).GetFirstElementInfoParts().gameObject.SetActive(true); monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(monsterMenuManager.GetBulletParts().GetEventStatusInfosPartsSize() - 2).GetSecondElementInfoParts().gameObject.SetActive(true); monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(0).GetFirstElementInfoParts().gameObject.SetActive(false); monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(0).GetSecondElementInfoParts().gameObject.SetActive(false); sceneMgr.inputProvider_ = new InactiveInputProvider(); } else if (sceneMgr.inputProvider_.DownSelect() || sceneMgr.inputProvider_.MouseWheelValue() < 0) { //SE monsterMenuManager.GetInputSoundProvider().DownSelect(); monsterMenuManager.GetMagazineParts().DownRollMagazineParts(); //操作の変更 eventMgr.InputProviderChangeEventSet(new KeyBoardNormalInputProvider()); monsterMenuManager.GetBulletParts().DownRollStatusInfoParts(); monsterMenuManager.selectMonsterNumber_ -= 1; monsterMenuManager.selectMonsterNumber_ = System.Math.Abs((monsterMenuManager.selectMonsterNumber_ + playerData.GetMonsterDatasLength()) % playerData.GetMonsterDatasLength()); //モンスターのパラメーターの反映 monsterMenuManager.GetParameterInfoFrameParts().MonsterDataReflect(playerData.GetMonsterDatas(monsterMenuManager.selectMonsterNumber_)); //モンスターの技の名前の反映 for (int i = 0; i < monsterMenuManager.GetSkillCommandParts().GetCommandWindowTextsCount(); ++i) { monsterMenuManager.GetSkillCommandParts().CommandWindowChoiceTextChange(i, " " + playerData.GetMonsterDatas(monsterMenuManager.selectMonsterNumber_).GetSkillDatas(i).skillName_); } //最後のステータスインフォパーツに反映 int referMonsterNumber = System.Math.Abs(((monsterMenuManager.selectMonsterNumber_ - 2) + playerData.GetMonsterDatasLength()) % playerData.GetMonsterDatasLength()); if (monsterMenuManager.swapActive_ && referMonsterNumber == monsterMenuManager.swapSelectNumber_) { monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(0).MonsterStatusInfoSet(playerData.GetMonsterDatas(referMonsterNumber)); monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(0).GetBaseParts().GetBaseSprite().color = new Color32(222, 255, 0, 0); } else { monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(0).MonsterStatusInfoSet(playerData.GetMonsterDatas(referMonsterNumber)); monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(0).GetBaseParts().GetBaseSprite().color = new Color32(255, 255, 255, 0); } //状態異常の表示、非表示 monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(1).GetFirstAbnormalStateInfoParts().gameObject.SetActive(true); monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(1).GetSecondAbnormalStateInfoParts().gameObject.SetActive(true); monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(monsterMenuManager.GetBulletParts().GetEventStatusInfosPartsSize() - 1).GetFirstAbnormalStateInfoParts().gameObject.SetActive(false); monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(monsterMenuManager.GetBulletParts().GetEventStatusInfosPartsSize() - 1).GetSecondAbnormalStateInfoParts().gameObject.SetActive(false); //タイプの表示、非表示 monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(1).GetFirstElementInfoParts().gameObject.SetActive(true); monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(1).GetSecondElementInfoParts().gameObject.SetActive(true); monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(monsterMenuManager.GetBulletParts().GetEventStatusInfosPartsSize() - 1).GetFirstElementInfoParts().gameObject.SetActive(false); monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(monsterMenuManager.GetBulletParts().GetEventStatusInfosPartsSize() - 1).GetSecondElementInfoParts().gameObject.SetActive(false); sceneMgr.inputProvider_ = new InactiveInputProvider(); } else if (sceneMgr.inputProvider_.RightSelect()) { } else if (sceneMgr.inputProvider_.LeftSelect()) { } else if (sceneMgr.inputProvider_.SelectEnter() || sceneMgr.inputProvider_.SelectMouseLeftTrigger()) { //None以外だったら if (playerData.GetMonsterDatas(monsterMenuManager.selectMonsterNumber_).tribesData_.monsterNumber_ != (int)MonsterTribesDataNumber.None) { //SE monsterMenuManager.GetInputSoundProvider().SelectEnter(); //スワップ中 if (monsterMenuManager.swapActive_) { //スワップ選択中のモンスターと選択中のモンスターが一緒ではなかったら if (monsterMenuManager.swapSelectNumber_ != monsterMenuManager.selectMonsterNumber_) { //スワップ処理 playerData.MonsterSwap(monsterMenuManager.selectMonsterNumber_, monsterMenuManager.swapSelectNumber_); //ステータスインフォへの反映 for (int i = 0; i < (monsterMenuManager.GetBulletParts().GetEventStatusInfosPartsSize() / 2) + 1; ++i) { if (i == 0) { monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(i + 2).MonsterStatusInfoSet(playerData.GetMonsterDatas(monsterMenuManager.selectMonsterNumber_)); } else { monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(i + 2).MonsterStatusInfoSet(playerData.GetMonsterDatas((monsterMenuManager.selectMonsterNumber_ + i) % playerData.GetMonsterDatasLength())); monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(-i + 2).MonsterStatusInfoSet(playerData.GetMonsterDatas(System.Math.Abs((monsterMenuManager.selectMonsterNumber_ - i + playerData.GetMonsterDatasLength()) % playerData.GetMonsterDatasLength()))); } } //MagazinePartsのSDの画像の変更 for (int i = 0; i < monsterMenuManager.GetMagazineParts().GetMonsterSDsPartsCount(); ++i) { monsterMenuManager.GetMagazineParts().GetMonsterSDsParts(i).GetMonsterSDEventSpriteRenderer().GetSpriteRenderer().sprite = playerData.GetMonsterDatas(i).tribesData_.SDTex_; } //モンスターのパラメーターの反映 monsterMenuManager.GetParameterInfoFrameParts().MonsterDataReflect(playerData.GetMonsterDatas(monsterMenuManager.selectMonsterNumber_)); //モンスターの技の名前の反映 for (int i = 0; i < monsterMenuManager.GetSkillCommandParts().GetCommandWindowTextsCount(); ++i) { monsterMenuManager.GetSkillCommandParts().CommandWindowChoiceTextChange(i, " " + playerData.GetMonsterDatas(monsterMenuManager.selectMonsterNumber_).GetSkillDatas(i).skillName_); } } monsterMenuManager.swapActive_ = false; //バレットの色の変更 for (int i = 0; i < monsterMenuManager.GetBulletParts().GetEventStatusInfosPartsSize(); ++i) { monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(i).GetBaseParts().GetBaseSprite().color = new Color(1.0f, 1.0f, 1.0f, monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(i).GetBaseParts().GetBaseSprite().color.a); } } else { monsterMenuManager.GetMonsterActionCommandParts().gameObject.SetActive(true); //操作の変更 AllSceneManager.GetInstance().inputProvider_ = new KeyBoardNormalTriggerInputProvider(); return(MonsterMenuSceneProcess.MonsterActionSelect); } } } else if (sceneMgr.inputProvider_.SelectBack() || sceneMgr.inputProvider_.SelectMouseRightTrigger()) { //スワップ中じゃなかったら if (!monsterMenuManager.swapActive_) { 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); //シーンの切り替え if (playerData.prepareContinue_) { playerData.prepareContinue_ = false; eventMgr.SceneChangeEventSet(SceneState.GameContinue, SceneChangeMode.Continue); } else { eventMgr.SceneChangeEventSet(SceneState.Map, SceneChangeMode.Change); } } } return(monsterMenuManager.GetNowProcessState().state_); }
public override MonsterMenuSceneProcess Update(MonsterMenuManager monsterMenuManager) { AllSceneManager sceneMgr = AllSceneManager.GetInstance(); AllEventManager eventMgr = AllEventManager.GetInstance(); PlayerBattleData playerData = PlayerBattleData.GetInstance(); eventMgr.EventUpdate(); if (sceneMgr.inputProvider_.UpSelect() || sceneMgr.inputProvider_.MouseWheelValue() > 0) { //SE monsterMenuManager.GetInputSoundProvider().UpSelect(); monsterMenuManager.GetMagazineParts().UpRollMagazineParts(); //操作の変更 eventMgr.InputProviderChangeEventSet(new KeyBoardNormalInputProvider()); monsterMenuManager.GetBulletParts().UpRollStatusInfoParts(); monsterMenuManager.selectMonsterNumber_ += 1; monsterMenuManager.selectMonsterNumber_ %= playerData.GetMonsterDatasLength(); //モンスターのパラメーターの反映 monsterMenuManager.GetParameterInfoFrameParts().MonsterDataReflect(playerData.GetMonsterDatas(monsterMenuManager.selectMonsterNumber_)); //モンスターの技の名前の反映 for (int i = 0; i < monsterMenuManager.GetSkillCommandParts().GetCommandWindowTextsCount(); ++i) { monsterMenuManager.GetSkillCommandParts().CommandWindowChoiceTextChange(i, " " + playerData.GetMonsterDatas(monsterMenuManager.selectMonsterNumber_).GetSkillDatas(i).skillName_); } //最後のステータスインフォパーツに反映 int referMonsterNumber = (monsterMenuManager.selectMonsterNumber_ + 2) % playerData.GetMonsterDatasLength(); monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(monsterMenuManager.GetBulletParts().GetEventStatusInfosPartsSize() - 1).MonsterStatusInfoSet(playerData.GetMonsterDatas(referMonsterNumber)); //状態異常の表示、非表示 monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(monsterMenuManager.GetBulletParts().GetEventStatusInfosPartsSize() - 2).GetFirstAbnormalStateInfoParts().gameObject.SetActive(true); monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(monsterMenuManager.GetBulletParts().GetEventStatusInfosPartsSize() - 2).GetSecondAbnormalStateInfoParts().gameObject.SetActive(true); monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(0).GetFirstAbnormalStateInfoParts().gameObject.SetActive(false); monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(0).GetSecondAbnormalStateInfoParts().gameObject.SetActive(false); //タイプの表示、非表示 monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(monsterMenuManager.GetBulletParts().GetEventStatusInfosPartsSize() - 2).GetFirstElementInfoParts().gameObject.SetActive(true); monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(monsterMenuManager.GetBulletParts().GetEventStatusInfosPartsSize() - 2).GetSecondElementInfoParts().gameObject.SetActive(true); monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(0).GetFirstElementInfoParts().gameObject.SetActive(false); monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(0).GetSecondElementInfoParts().gameObject.SetActive(false); sceneMgr.inputProvider_ = new InactiveInputProvider(); } else if (sceneMgr.inputProvider_.DownSelect() || sceneMgr.inputProvider_.MouseWheelValue() < 0) { //SE monsterMenuManager.GetInputSoundProvider().DownSelect(); monsterMenuManager.GetMagazineParts().DownRollMagazineParts(); //操作の変更 eventMgr.InputProviderChangeEventSet(new KeyBoardNormalInputProvider()); monsterMenuManager.GetBulletParts().DownRollStatusInfoParts(); monsterMenuManager.selectMonsterNumber_ -= 1; monsterMenuManager.selectMonsterNumber_ = System.Math.Abs((monsterMenuManager.selectMonsterNumber_ + playerData.GetMonsterDatasLength()) % playerData.GetMonsterDatasLength()); //モンスターのパラメーターの反映 monsterMenuManager.GetParameterInfoFrameParts().MonsterDataReflect(playerData.GetMonsterDatas(monsterMenuManager.selectMonsterNumber_)); //モンスターの技の名前の反映 for (int i = 0; i < monsterMenuManager.GetSkillCommandParts().GetCommandWindowTextsCount(); ++i) { monsterMenuManager.GetSkillCommandParts().CommandWindowChoiceTextChange(i, " " + playerData.GetMonsterDatas(monsterMenuManager.selectMonsterNumber_).GetSkillDatas(i).skillName_); } //最初のステータスインフォパーツに反映 int referMonsterNumber = System.Math.Abs(((monsterMenuManager.selectMonsterNumber_ - 2) + playerData.GetMonsterDatasLength()) % playerData.GetMonsterDatasLength()); monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(0).MonsterStatusInfoSet(playerData.GetMonsterDatas(referMonsterNumber)); //状態異常の表示、非表示 monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(1).GetFirstAbnormalStateInfoParts().gameObject.SetActive(true); monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(1).GetSecondAbnormalStateInfoParts().gameObject.SetActive(true); monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(monsterMenuManager.GetBulletParts().GetEventStatusInfosPartsSize() - 1).GetFirstAbnormalStateInfoParts().gameObject.SetActive(false); monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(monsterMenuManager.GetBulletParts().GetEventStatusInfosPartsSize() - 1).GetSecondAbnormalStateInfoParts().gameObject.SetActive(false); //タイプの表示、非表示 monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(1).GetFirstElementInfoParts().gameObject.SetActive(true); monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(1).GetSecondElementInfoParts().gameObject.SetActive(true); monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(monsterMenuManager.GetBulletParts().GetEventStatusInfosPartsSize() - 1).GetFirstElementInfoParts().gameObject.SetActive(false); monsterMenuManager.GetBulletParts().GetEventStatusInfosParts(monsterMenuManager.GetBulletParts().GetEventStatusInfosPartsSize() - 1).GetSecondElementInfoParts().gameObject.SetActive(false); sceneMgr.inputProvider_ = new InactiveInputProvider(); } else if (sceneMgr.inputProvider_.RightSelect()) { } else if (sceneMgr.inputProvider_.LeftSelect()) { } else if (sceneMgr.inputProvider_.SelectEnter() || sceneMgr.inputProvider_.SelectMouseLeftTrigger()) { //None以外だったら if (playerData.GetMonsterDatas(monsterMenuManager.selectMonsterNumber_).tribesData_.monsterNumber_ != (int)MonsterTribesDataNumber.None) { //SE monsterMenuManager.GetInputSoundProvider().SelectEnter(); //技の情報の反映 monsterMenuManager.GetSkillInfoFrameParts().SkillInfoReflect(PlayerBattleData.GetInstance().GetMonsterDatas(monsterMenuManager.selectMonsterNumber_).GetSkillDatas(0)); //技の選択肢の初期化 monsterMenuManager.GetSkillCommandParts().commandWindowChoicesColliderActive(); monsterMenuManager.GetSkillCommandParts().GetCursorParts().gameObject.SetActive(true); //操作の変更 AllSceneManager.GetInstance().inputProvider_ = new KeyBoardNormalTriggerInputProvider(); return(MonsterMenuSceneProcess.SkillSelect); } } else if (sceneMgr.inputProvider_.SelectBack() || sceneMgr.inputProvider_.SelectMouseRightTrigger()) { if (playerData.GetMonsterDatas(0).battleActive_) { sceneMgr.inputProvider_ = new InactiveInputProvider(); playerData.changeMonsterNumber_ = 0; playerData.changeMonsterActive_ = 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, 255) ); eventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); eventMgr.AllUpdateEventExecute(0.4f); //シーンの切り替え eventMgr.SceneChangeEventSet(SceneState.Battle, SceneChangeMode.Continue); } } return(monsterMenuManager.GetNowProcessState().state_); }
public override MonsterMenuSceneProcess Update(MonsterMenuManager monsterMenuManager) { AllSceneManager sceneMgr = AllSceneManager.GetInstance(); AllEventManager eventMgr = AllEventManager.GetInstance(); PlayerTrainerData playerData = PlayerTrainerData.GetInstance(); eventMgr.EventUpdate(); if (MonsterMenuManager.skillTradeActive_) { MonsterMenuManager.skillTradeActive_ = false; sceneMgr.inputProvider_ = new KeyBoardSelectInactiveTriggerInputProvider(); //技が設定されていたら if (MonsterMenuManager.skillTradeSkillData_ == null) { //フェードイン 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(0.4f); } else { monsterMenuManager.GetNovelWindowParts().GetNovelBlinkIconParts().GetNovelBlinkIconEventSprite().blinkTimeRegulation_ = 0.5f; monsterMenuManager.GetNovelWindowParts().GetNovelBlinkIconParts().GetNovelBlinkIconEventSprite().GetBlinkState().state_ = UpdateSpriteRendererProcessBlink.In; //スキルの行動の選択肢の初期化 nowSkillActionCommandExecuteStateProvider_.state_ = MonsterMenuSceneSkillActionCommandExecute.Swap; monsterMenuManager.GetSkillActionCommandParts().SelectReset(new Vector3(-0.6f, 0.85f, -4)); string context = "1..." + "\r\n\r\n" + "2の..." + "\r\n\r\n" + "ぽかん!" + "\r\n\r\n" + playerData.GetMonsterDatas(monsterMenuManager.selectMonsterNumber_).uniqueName_ + "は \r\n" + playerData.GetMonsterDatas(monsterMenuManager.selectMonsterNumber_).GetSkillDatas(monsterMenuManager.GetSkillCommandParts().SelectNumber()).skillName_ + "を忘れて" + "\r\n\r\n" + MonsterMenuManager.skillTradeSkillData_.skillName_ + "を 覚えた!"; List <string> contexts = t13.Utility.ContextSlice(context, "\r\n\r\n"); //技の反映 playerData.GetMonsterDatas(monsterMenuManager.selectMonsterNumber_).SkillSet(MonsterMenuManager.skillTradeSkillData_, monsterMenuManager.GetSkillCommandParts().SelectNumber()); //技の情報の反映 monsterMenuManager.GetSkillInfoFrameParts().SkillInfoReflect(PlayerTrainerData.GetInstance().GetMonsterDatas(monsterMenuManager.selectMonsterNumber_).GetSkillDatas(monsterMenuManager.GetSkillCommandParts().SelectNumber())); //モンスターの技の名前の反映 for (int i = 0; i < monsterMenuManager.GetSkillCommandParts().GetCommandWindowTextsCount(); ++i) { monsterMenuManager.GetSkillCommandParts().CommandWindowChoiceTextChange(i, " " + playerData.GetMonsterDatas(monsterMenuManager.selectMonsterNumber_).GetSkillDatas(i).skillName_); } //フェードイン 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(0.4f); //ウィンドウの表示 eventMgr.UpdateGameObjectSet(monsterMenuManager.GetNovelWindowParts().GetUpdateGameObject()); eventMgr.UpdateGameObjectsActiveSetExecute(true); for (int i = 0; i < contexts.Count; ++i) { //文字列の処理 eventMgr.EventTextSet(monsterMenuManager.GetNovelWindowParts().GetNovelWindowEventText(), contexts[i]); eventMgr.EventTextsUpdateExecuteSet(EventTextEventManagerExecute.CharaUpdate); eventMgr.AllUpdateEventExecute(0.6f); //Blinkの開始 eventMgr.EventSpriteRendererSet(monsterMenuManager.GetNovelWindowParts().GetNovelBlinkIconParts().GetNovelBlinkIconEventSprite()); eventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.BlinkStart); eventMgr.AllUpdateEventExecute(); //Enterの押下待ち eventMgr.EventTriggerSet(); //Blinkの終了 eventMgr.EventSpriteRendererSet(monsterMenuManager.GetNovelWindowParts().GetNovelBlinkIconParts().GetNovelBlinkIconEventSprite()); eventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.BlinkEnd); eventMgr.AllUpdateEventExecute(); } //ウィンドウの初期化 eventMgr.EventTextSet(monsterMenuManager.GetNovelWindowParts().GetNovelWindowEventText(), ""); eventMgr.EventTextsUpdateExecuteSet(EventTextEventManagerExecute.CharaUpdate); eventMgr.AllUpdateEventExecute(); //ウィンドウの非表示 eventMgr.UpdateGameObjectSet(monsterMenuManager.GetNovelWindowParts().GetUpdateGameObject()); eventMgr.UpdateGameObjectsActiveSetExecute(false); } //操作の変更 eventMgr.InputProviderChangeEventSet(new KeyBoardNormalTriggerInputProvider()); return(MonsterMenuSceneProcess.SkillTradeEventExecute); } //カーソルが動いていたら int commandSelectNumber = monsterMenuManager.GetSkillActionCommandParts().CommandSelectForNumber(new Vector3(), new Vector3(0, 0.55f, 0)); if (commandSelectNumber > -1) { //SE monsterMenuManager.GetInputSoundProvider().UpSelect(); nowSkillActionCommandExecuteStateProvider_.state_ = (MonsterMenuSceneSkillActionCommandExecute)monsterMenuManager.GetSkillActionCommandParts().SelectNumber() + 1; } else if (sceneMgr.inputProvider_.UpSelect()) { //選択肢が動かせたら if (monsterMenuManager.GetSkillActionCommandParts().CommandSelectUp(new Vector3(0, 0.55f, 0))) { //SE monsterMenuManager.GetInputSoundProvider().UpSelect(); nowSkillActionCommandExecuteStateProvider_.state_ = (MonsterMenuSceneSkillActionCommandExecute)monsterMenuManager.GetSkillActionCommandParts().SelectNumber() + 1; } } else if (sceneMgr.inputProvider_.DownSelect()) { //選択肢が動かせたら if (monsterMenuManager.GetSkillActionCommandParts().CommandSelectDown(new Vector3(0, -0.55f, 0))) { //SE monsterMenuManager.GetInputSoundProvider().DownSelect(); nowSkillActionCommandExecuteStateProvider_.state_ = (MonsterMenuSceneSkillActionCommandExecute)monsterMenuManager.GetSkillActionCommandParts().SelectNumber() + 1; } } else if (sceneMgr.inputProvider_.RightSelect()) { } else if (sceneMgr.inputProvider_.LeftSelect()) { } else if (sceneMgr.inputProvider_.SelectEnter() || monsterMenuManager.GetSkillActionCommandParts().MouseLeftButtonTriggerActive()) { //SE monsterMenuManager.GetInputSoundProvider().SelectEnter(); nowSkillActionCommandExecuteStateProvider_.Execute(monsterMenuManager); //スキルの行動の選択肢の初期化 nowSkillActionCommandExecuteStateProvider_.state_ = MonsterMenuSceneSkillActionCommandExecute.Swap; monsterMenuManager.GetSkillActionCommandParts().SelectReset(new Vector3(-0.6f, 0.85f, -4)); } else if (sceneMgr.inputProvider_.SelectBack() || sceneMgr.inputProvider_.SelectMouseRightTrigger()) { monsterMenuManager.GetSkillActionCommandParts().gameObject.SetActive(false); //スキルの行動の選択肢の初期化 nowSkillActionCommandExecuteStateProvider_.state_ = MonsterMenuSceneSkillActionCommandExecute.Swap; monsterMenuManager.GetSkillActionCommandParts().SelectReset(new Vector3(-0.6f, 0.85f, -4)); monsterMenuManager.GetSkillCommandParts().commandWindowChoicesColliderActive(); return(MonsterMenuSceneProcess.SkillSelect); } return(monsterMenuManager.GetNowProcessState().state_); }
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 IProcessState Update(BattleManager mgr) { AllEventManager eventMgr = AllEventManager.GetInstance(); AllSceneManager sceneMgr = AllSceneManager.GetInstance(); //敵の思考時間の処理 EnemyBattleData.GetInstance().ThinkingTimeCounter(); //モンスターが交換されていたら if (PlayerBattleData.GetInstance().changeMonsterActive_) { executeProvider_.state_ = BattleSceneStartCommandExecuteState.Attack; mgr.ActiveUiStartCommand(); mgr.InactiveUiStartCommand(); //フェードイン 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(0.4f); eventMgr.UpdateGameObjectSet(mgr.GetStartCommandParts().GetEventGameObject()); eventMgr.UpdateGameObjectsActiveSetExecute(true); //dpが100以上だったら //if (PlayerBattleData.GetInstance().GetDreamPoint() >= 100) { // eventMgr.EventTextSet(mgr.GetNovelWindowParts().GetNovelWindowEventText() // , "ゆめたちが \n" // + "きょうめいしている・・・"); // eventMgr.EventTextsUpdateExecuteSet(EventTextEventManagerExecute.CharaUpdate); // eventMgr.AllUpdateEventExecute(); //} //else { // eventMgr.EventTextSet(mgr.GetNovelWindowParts().GetNovelWindowEventText(), PlayerBattleData.GetInstance().GetMonsterDatas(0).uniqueName_ + "は どうする?"); // eventMgr.EventTextsUpdateExecuteSet(EventTextEventManagerExecute.CharaUpdate); // eventMgr.AllUpdateEventExecute(); //} eventMgr.EventStatusInfoPartsSet(mgr.GetPlayerStatusInfoParts(), new Color32(0, 0, 0, 0)); eventMgr.StatusInfoPartsUpdateExecuteSet(StatusInfoPartsEventManagerExecute.IdleMoveStart); eventMgr.AllUpdateEventExecute(); //イベントの最後 eventMgr.EventFinishSet(); PlayerBattleData.GetInstance().changeMonsterActive_ = false; } //やけどのダメージ処理 if (mgr.BurnsDamageProcess(PlayerBattleData.GetInstance(), mgr.GetPlayerStatusInfoParts(), mgr.GetPlayerMonsterParts())) { return(new CommandEventExecuteProcess()); } if (EnemyBattleData.GetInstance().GetThinkingEnd() == false) { //やけどのダメージ処理 if (mgr.BurnsDamageProcess(EnemyBattleData.GetInstance(), mgr.GetEnemyStatusInfoParts(), mgr.GetEnemyMonsterParts())) { return(new CommandEventExecuteProcess()); } if (EnemyBattleData.GetInstance().PoinsonCounter()) { //どくのダメージ処理 mgr.PoisonDamageProcess(EnemyBattleData.GetInstance(), mgr.GetEnemyStatusInfoParts(), mgr.GetEnemyMonsterParts()); if (mgr.PoisonDamageDown()) { return(new CommandEventExecuteProcess()); } } } if (AllEventManager.GetInstance().EventUpdate()) { sceneMgr.inputProvider_ = new KeyBoardNormalTriggerInputProvider(); } //カーソルが動いていたら int commandSelectNumber = mgr.GetStartCommandParts().CommandSelectForNumber(new Vector3(), new Vector3(0, 1.32f, 0)); if (commandSelectNumber > -1) { //SE mgr.GetInputSoundProvider().UpSelect(); executeProvider_.state_ = (BattleSceneStartCommandExecuteState)mgr.GetStartCommandParts().SelectNumber() + 1; //どくのダメージ処理 mgr.PoisonDamageProcess(PlayerBattleData.GetInstance(), mgr.GetPlayerStatusInfoParts(), mgr.GetPlayerMonsterParts()); } else if (sceneMgr.inputProvider_.UpSelect()) { //選択肢が動かせたら if (mgr.GetStartCommandParts().CommandSelectUp(new Vector3(0, 1.33f, 0))) { //SE mgr.GetInputSoundProvider().UpSelect(); executeProvider_.state_ = (BattleSceneStartCommandExecuteState)mgr.GetStartCommandParts().SelectNumber() + 1; //どくのダメージ処理 mgr.PoisonDamageProcess(PlayerBattleData.GetInstance(), mgr.GetPlayerStatusInfoParts(), mgr.GetPlayerMonsterParts()); } } else if (sceneMgr.inputProvider_.DownSelect()) { //選択肢が動かせたら if (mgr.GetStartCommandParts().CommandSelectDown(new Vector3(0, -1.33f, 0))) { //SE mgr.GetInputSoundProvider().DownSelect(); executeProvider_.state_ = (BattleSceneStartCommandExecuteState)mgr.GetStartCommandParts().SelectNumber() + 1; //どくのダメージ処理 mgr.PoisonDamageProcess(PlayerBattleData.GetInstance(), mgr.GetPlayerStatusInfoParts(), mgr.GetPlayerMonsterParts()); } } else if (sceneMgr.inputProvider_.RightSelect()) { } else if (sceneMgr.inputProvider_.LeftSelect()) { } else if (sceneMgr.inputProvider_.SelectEnter() || mgr.GetStartCommandParts().MouseLeftButtonTriggerActive()) { return(executeProvider_.Execute(mgr)); } //どくで倒れたら if (mgr.PoisonDamageDown()) { return(new CommandEventExecuteProcess()); } return(this); }
private static void BattleLose(EventMoveMap eventMoveMap, MapManager mapManager) { AllEventManager allEventMgr = AllEventManager.GetInstance(); AllSceneManager allSceneMgr = AllSceneManager.GetInstance(); PlayerTrainerData playerTrainerData = PlayerTrainerData.GetInstance(); EnemyTrainerData enemyTrainerData = EnemyTrainerData.GetInstance(); mapManager.GetNovelWindowParts().GetNovelBlinkIconParts().GetNovelBlinkIconEventSprite().blinkTimeRegulation_ = 0.5f; mapManager.GetNovelWindowParts().GetNovelBlinkIconParts().GetNovelBlinkIconEventSprite().GetBlinkState().state_ = UpdateSpriteRendererProcessBlink.In; //技の取得 for (int i = 1; i < 13; ++i) { playerTrainerData.SkillAdd(new SkillData((SkillDataNumber)i)); } //playerTrainerData.SkillAdd(new SkillData((SkillDataNumber)43)); //playerTrainerData.SkillAdd(new SkillData((SkillDataNumber)44)); //playerTrainerData.SkillAdd(new SkillData((SkillDataNumber)45)); //playerTrainerData.SkillAdd(new SkillData((SkillDataNumber)46)); //playerTrainerData.SkillAdd(new SkillData((SkillDataNumber)48)); //BGMの再生 AllSceneManager.GetInstance().GetPublicAudioParts().GetBGMAudioSource().clip = ResourcesSoundsLoader.GetInstance().GetSounds(SoundsPathSupervisor.GetInstance().GetPathDreamers_Map()); AllSceneManager.GetInstance().GetPublicAudioParts().GetBGMAudioSource().Play(); //バトル後のイベントへ eventMoveMap.executeEventNum_ = 4; //階層の移動の解放 mapManager.GetFloorObjects().GetEventMoveMaps(1).executeEventNum_ = 1; mapManager.GetFloorObjects().GetEventMoveMaps(2).executeEventNum_ = 1; //ドアの解放 mapManager.GetFloorObjects().GetEventMoveMaps(1).GetEventSpriteRenderer().GetSpriteRenderer().sprite = null; mapManager.GetFloorObjects().GetEventMoveMaps(2).GetEventSpriteRenderer().GetSpriteRenderer().sprite = null; mapManager.GetFloorObjects().GetEventMoveMaps(3).GetEventSpriteRenderer().GetSpriteRenderer().sprite = null; mapManager.GetFloorObjects().GetEventMoveMaps(4).GetEventSpriteRenderer().GetSpriteRenderer().sprite = null; //手持ちモンスターの回復 for (int i = 0; i < playerTrainerData.GetHaveMonsterSize(); ++i) { playerTrainerData.GetMonsterDatas(i).battleActive_ = true; playerTrainerData.GetMonsterDatas(i).nowHitPoint_ = playerTrainerData.GetMonsterDatas(i).RealHitPoint(); } //クリア階層の増加 playerTrainerData.clearMapFloor_ += 1; //ノベル処理 { string context = ResourcesTextsLoader.GetInstance().GetTexts("TutorialDocter/BattleLose1"); EventMoveMap.NovelEvent(mapManager.GetNovelWindowParts(), context, mapManager.GetCharacterEventSprite()); } //フェードアウト allEventMgr.EventSpriteRendererSet( allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite() , null , new Color(0, 0, 0, 1) ); allEventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); allEventMgr.AllUpdateEventExecute(0.4f); //ウェイト allEventMgr.EventWaitSet(allSceneMgr.GetEventWaitTime()); //フェードイン allEventMgr.EventSpriteRendererSet( allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite() , null , new Color(0, 0, 0, 0) ); allEventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); allEventMgr.AllUpdateEventExecute(0.4f); //イベントの最後 allEventMgr.EventFinishSet(); }
public void SceneUpdate() { AllEventManager eventMgr = AllEventManager.GetInstance(); AllSceneManager sceneMgr = AllSceneManager.GetInstance(); if (AllEventManager.GetInstance().EventUpdate()) { sceneMgr.inputProvider_ = new KeyBoardNormalTriggerInputProvider(); } //カーソルが動いていたら int commandSelectNumber = commandParts_.CommandSelectForNumber(new Vector3(), new Vector3(0, 1.9f, 0)); if (commandSelectNumber > -1) { //説明の画像 if (commandSelectNumber == 0) { dataSelectInfoSprite_.sprite = ResourcesGraphicsLoader.GetInstance().GetGraphics(GraphicsPathSupervisor.GetInstance().GetPathGameStartInfo()); } if (commandSelectNumber == 1) { dataSelectInfoSprite_.sprite = ResourcesGraphicsLoader.GetInstance().GetGraphics(GraphicsPathSupervisor.GetInstance().GetPathGameContinueInfo()); } //SE inputSoundProvider_.UpSelect(); } else if (sceneMgr.inputProvider_.UpSelect()) { //カーソルが動かせたら if (commandParts_.CommandSelectUp(new Vector3(0, 1.9f, 0))) { //説明の画像 dataSelectInfoSprite_.sprite = ResourcesGraphicsLoader.GetInstance().GetGraphics(GraphicsPathSupervisor.GetInstance().GetPathGameStartInfo()); //SE inputSoundProvider_.UpSelect(); } } else if (sceneMgr.inputProvider_.DownSelect()) { //カーソルが動かせたら if (commandParts_.CommandSelectDown(new Vector3(0, -1.9f, 0))) { //説明の画像 dataSelectInfoSprite_.sprite = ResourcesGraphicsLoader.GetInstance().GetGraphics(GraphicsPathSupervisor.GetInstance().GetPathGameContinueInfo()); //SE inputSoundProvider_.DownSelect(); } } else if (sceneMgr.inputProvider_.SelectEnter() || commandParts_.MouseLeftButtonTriggerActive()) { //データの初期化 PlayerTrainerData.ReleaseInstance(); EnemyTrainerData.ReleaseInstance(); if (commandParts_.SelectNumber() == 0) { Debug.Log("はじめから"); //操作の変更 sceneMgr.inputProvider_ = new InactiveInputProvider(); //SE inputSoundProvider_.SelectEnter(); //ウェイト eventMgr.EventWaitSet(sceneMgr.GetEventWaitTime()); //フェードアウト 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); //シーンの切り替え eventMgr.SceneChangeEventSet(SceneState.Map, SceneChangeMode.Change); } else if (commandParts_.SelectNumber() == 1) { Debug.Log("つづきから"); //データのロード if (SaveDataTrasfer.GetInstance().DataLoad()) { //操作の変更 sceneMgr.inputProvider_ = new InactiveInputProvider(); //SE inputSoundProvider_.SelectEnter(); //ウェイト eventMgr.EventWaitSet(sceneMgr.GetEventWaitTime()); //フェードアウト 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); //シーンの切り替え eventMgr.SceneChangeEventSet(SceneState.Map, SceneChangeMode.Change); } } } }
public void SceneStart() { AllSceneManager allSceneMgr = AllSceneManager.GetInstance(); AllEventManager allEventMgr = AllEventManager.GetInstance(); PlayerTrainerData playerData = PlayerTrainerData.GetInstance(); //初めての処理だったら if (firstStart_) { firstStart_ = false; //オブジェクトの配置 for (int i = 0; i < floorObjects_.Count; ++i) { floorObjects_[i].gameObject.SetActive(true); } //依存性注入 processProvider_.state_ = MapSceneProcess.PlayerMove; //ウェイト allEventMgr.EventWaitSet(0.5f); //シーンの切り替え allEventMgr.SceneChangeEventSet(SceneState.Map, SceneChangeMode.Change); } else { //依存性注入 processProvider_.state_ = MapSceneProcess.PlayerMove; inputSoundProvider_.state_ = MapSceneInputSoundState.Normal; //主人公の移動の変更 playerMoveMap_.is_move = true; //BGMの再生 AllSceneManager.GetInstance().GetPublicAudioParts().GetBGMAudioSource().clip = ResourcesSoundsLoader.GetInstance().GetSounds(SoundsPathSupervisor.GetInstance().GetPathDreamers_Map()); AllSceneManager.GetInstance().GetPublicAudioParts().GetBGMAudioSource().Play(); //オブジェクトの配置 for (int i = 0; i < floorObjects_.Count; ++i) { floorObjects_[i].gameObject.SetActive(false); } floorObjects_[playerData.nowMapFloor_].gameObject.SetActive(true); //マップデータに反映 mapData_.MapDataReset(); //各階層の扉の画像の反映 { Sprite[] sprites = ResourcesGraphicsLoader.GetInstance().GetGraphicsAll("MapScene/institute01"); for (int i = floorObjects_.Count - 1; i >= playerData.clearMapFloor_; --i) { floorObjects_[i].GetEventMoveMaps(1).GetEventSpriteRenderer().GetSpriteRenderer().sprite = sprites[44]; floorObjects_[i].GetEventMoveMaps(2).GetEventSpriteRenderer().GetSpriteRenderer().sprite = sprites[43]; floorObjects_[i].GetEventMoveMaps(3).GetEventSpriteRenderer().GetSpriteRenderer().sprite = sprites[51]; floorObjects_[i].GetEventMoveMaps(4).GetEventSpriteRenderer().GetSpriteRenderer().sprite = sprites[52]; } for (int i = 0; i < playerData.clearMapFloor_; ++i) { floorObjects_[i].GetEventMoveMaps(1).GetEventSpriteRenderer().GetSpriteRenderer().sprite = null; floorObjects_[i].GetEventMoveMaps(2).GetEventSpriteRenderer().GetSpriteRenderer().sprite = null; floorObjects_[i].GetEventMoveMaps(3).GetEventSpriteRenderer().GetSpriteRenderer().sprite = null; floorObjects_[i].GetEventMoveMaps(4).GetEventSpriteRenderer().GetSpriteRenderer().sprite = null; } } //各階層の階層イベントの反映 for (int i = floorObjects_.Count - 1; i >= playerData.clearMapFloor_; --i) { floorObjects_[i].GetEventMoveMaps(0).executeEventNum_ = 1; floorObjects_[i].GetEventMoveMaps(1).executeEventNum_ = 0; floorObjects_[i].GetEventMoveMaps(2).executeEventNum_ = 0; } for (int i = 0; i < playerData.clearMapFloor_; ++i) { floorObjects_[i].GetEventMoveMaps(0).executeEventNum_ = 4; floorObjects_[i].GetEventMoveMaps(1).executeEventNum_ = 1; floorObjects_[i].GetEventMoveMaps(2).executeEventNum_ = 1; } //フェードイン allEventMgr.EventSpriteRendererSet( allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite() , null , new Color(allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.r, allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.g, allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.b, 0) ); allEventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); allEventMgr.AllUpdateEventExecute(0.4f); //イベントの最後 //制御の変更 allEventMgr.InputProviderChangeEventSet(new KeyBoardNormalInputProvider()); } }