public override void SelectEnter(MapManager mapManager) { AllSceneManager sceneMgr = AllSceneManager.GetInstance(); AllEventManager eventMgr = AllEventManager.GetInstance(); mapManager.GetNovelWindowParts().GetNovelBlinkIconParts().GetNovelBlinkIconEventSprite().blinkTimeRegulation_ = 0.5f; mapManager.GetNovelWindowParts().GetNovelBlinkIconParts().GetNovelBlinkIconEventSprite().GetBlinkState().state_ = UpdateSpriteRendererProcessBlink.In; //選択肢の初期化 mapManager.GetCommandParts().SelectReset(new Vector3(-0.6f, 0.85f, -4)); mapManager.GetPlayerMoveMap().is_move = false; mapManager.GetCommandParts().gameObject.SetActive(false); //操作の変更 sceneMgr.inputProvider_ = new KeyBoardSelectInactiveTriggerInputProvider(); mapManager.GetProcessProvider().state_ = MapSceneProcess.EventExecute; mapManager.eventBackProcess_ = MapSceneProcess.PlayerMove; //データのセーブ SaveDataTrasfer.GetInstance().DataSave(); //SE eventMgr.SEAudioPlayOneShotEventSet(ResourcesSoundsLoader.GetInstance().GetSounds(SoundsPathSupervisor.GetInstance().GetPathSelect2())); //ノベル処理 EventMoveMap.NovelEvent(mapManager.GetNovelWindowParts(), "レポートに しっかりかきのこした!"); //イベントの最後 eventMgr.EventFinishSet(); }
private static void BattleStart(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; //エネミーの設定 enemyTrainerData.SetTrainerData(ResourcesEnemyTrainerDatasLoader.GetInstance().GetEnemyTrainerDatas(5)); //BGMの停止 allEventMgr.BGMAudioVolumeChangeEventSet(0); //ノベル処理 { string context = ResourcesTextsLoader.GetInstance().GetTexts("FinalDocter/BattleStart1"); EventMoveMap.NovelEvent(mapManager.GetNovelWindowParts(), context, mapManager.GetCharacterEventSprite()); } //BGMの再生 allEventMgr.BGMAudioClipChangeEventSet(ResourcesSoundsLoader.GetInstance().GetSounds(SoundsPathSupervisor.GetInstance().GetPathDreamers_DeadIntro())); allEventMgr.BGMAudioPlayEventSet(); allEventMgr.BGMAudioVolumeChangeEventSet(0.3f); //戦闘の処理 EventMoveMap.BattleEvent(ResourcesSoundsLoader.GetInstance().GetSounds(SoundsPathSupervisor.GetInstance().GetPathDreamers_Dead())); }
static public ResourcesSoundsLoader GetInstance() { if (instance_ != null) { return(instance_); } instance_ = new ResourcesSoundsLoader(); return(instance_); }
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(); }
public override void UpSelect() { AudioClip data = ResourcesSoundsLoader.GetInstance().GetSounds(SoundsPathSupervisor.GetInstance().GetPathCursor1()); AllSceneManager.GetInstance().GetPublicAudioParts().GetSEAudioSource().PlayOneShot(data); }
static public void ReleaseInstance() { instance_ = null; }
static public void NovelEvent(NovelWindowParts novelWindowParts, string context, EventSpriteRenderer characterSprite = null) { AllEventManager allEventMgr = AllEventManager.GetInstance(); AllSceneManager allSceneMgr = AllSceneManager.GetInstance(); //ウィンドウの表示 allEventMgr.UpdateGameObjectSet(novelWindowParts.GetUpdateGameObject()); allEventMgr.UpdateGameObjectsActiveSetExecute(true); if (characterSprite) { //スプライトの変更 characterSprite.GetSpriteRenderer().sprite = EnemyTrainerData.GetInstance().GetSprite(); //キャラクターの表示 allEventMgr.EventSpriteRendererSet( characterSprite , null , new Color32(255, 255, 255, 255) );; allEventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); allEventMgr.AllUpdateEventExecute(0.3f); //ウェイト allEventMgr.EventWaitSet(allSceneMgr.GetEventWaitTime()); } List <string> contexts = t13.Utility.ContextSlice(context, "\r\n\r\n"); for (int i = 0; i < contexts.Count; ++i) { //文字列の処理 allEventMgr.EventTextSet(novelWindowParts.GetNovelWindowEventText(), contexts[i]); allEventMgr.EventTextsUpdateExecuteSet(EventTextEventManagerExecute.CharaUpdate); allEventMgr.AllUpdateEventExecute(0.6f); //Blinkの開始 allEventMgr.EventSpriteRendererSet(novelWindowParts.GetNovelBlinkIconParts().GetNovelBlinkIconEventSprite()); allEventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.BlinkStart); allEventMgr.AllUpdateEventExecute(); //Enterの押下待ち allEventMgr.EventTriggerSet(); //SE allEventMgr.SEAudioPlayOneShotEventSet(ResourcesSoundsLoader.GetInstance().GetSounds(SoundsPathSupervisor.GetInstance().GetPathNovelNext())); //Blinkの終了 allEventMgr.EventSpriteRendererSet(novelWindowParts.GetNovelBlinkIconParts().GetNovelBlinkIconEventSprite()); allEventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.BlinkEnd); allEventMgr.AllUpdateEventExecute(); } //ウィンドウの初期化 allEventMgr.EventTextSet(novelWindowParts.GetNovelWindowEventText(), ""); allEventMgr.EventTextsUpdateExecuteSet(EventTextEventManagerExecute.CharaUpdate); allEventMgr.AllUpdateEventExecute(); if (characterSprite) { //キャラクターの非表示 allEventMgr.EventSpriteRendererSet( characterSprite , null , new Color32(255, 255, 255, 0) );; allEventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); allEventMgr.AllUpdateEventExecute(); } //ウィンドウの非表示 allEventMgr.UpdateGameObjectSet(novelWindowParts.GetUpdateGameObject()); allEventMgr.UpdateGameObjectsActiveSetExecute(false); }
private static void BattleStart(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; //エネミーの設定 enemyTrainerData.SetTrainerData(ResourcesEnemyTrainerDatasLoader.GetInstance().GetEnemyTrainerDatas(1)); //1週目だったら if (playerTrainerData.clearTimes_ == 0) { { //データの生成 IMonsterData md = new MonsterData(new MonsterTribesData(MonsterTribesDataNumber.Handreon), 0, 50); //技の取得 md.SkillAdd(new SkillData("ヒートプレス")); md.SkillAdd(new SkillData("ブレイヴキック")); md.SkillAdd(new SkillData("スピリットネス")); md.SkillAdd(new SkillData("ガードセット")); //プレイヤーの手持ちに追加 playerTrainerData.MonsterAdd(md); } { //データの生成 IMonsterData md = new MonsterData(new MonsterTribesData(MonsterTribesDataNumber.Bauporisu), 0, 50); //技の取得 md.SkillAdd(new SkillData("ブルーブラスト")); md.SkillAdd(new SkillData("たいほじゅつ")); md.SkillAdd(new SkillData("スピリットネス")); md.SkillAdd(new SkillData("ガードセット")); //プレイヤーの手持ちに追加 playerTrainerData.MonsterAdd(md); } { //データの生成 IMonsterData md = new MonsterData(new MonsterTribesData(MonsterTribesDataNumber.Furiruma), 0, 50); //技の取得 md.SkillAdd(new SkillData("リーフシュート")); md.SkillAdd(new SkillData("プリズムソング")); md.SkillAdd(new SkillData("スピリットネス")); md.SkillAdd(new SkillData("ガードセット")); //プレイヤーの手持ちに追加 playerTrainerData.MonsterAdd(md); } } //ノベル処理 { string context = ResourcesTextsLoader.GetInstance().GetTexts("TutorialDocter/BattleStart1"); EventMoveMap.NovelEvent(mapManager.GetNovelWindowParts(), context, mapManager.GetCharacterEventSprite()); } //ウェイト allEventMgr.EventWaitSet(allSceneMgr.GetEventWaitTime() * 2.0f); //ノベル処理 { string context = ResourcesTextsLoader.GetInstance().GetTexts("TutorialDocter/BattleStart2"); EventMoveMap.NovelEvent(mapManager.GetNovelWindowParts(), context, mapManager.GetCharacterEventSprite()); } //ウェイト allEventMgr.EventWaitSet(allSceneMgr.GetEventWaitTime() * 2.0f); //ノベル処理 { string context = ResourcesTextsLoader.GetInstance().GetTexts("TutorialDocter/BattleStart3"); EventMoveMap.NovelEvent(mapManager.GetNovelWindowParts(), context, mapManager.GetCharacterEventSprite()); } //ウェイト allEventMgr.EventWaitSet(allSceneMgr.GetEventWaitTime() * 2.0f); //ノベル処理 { string context = ResourcesTextsLoader.GetInstance().GetTexts("TutorialDocter/BattleStart4"); EventMoveMap.NovelEvent(mapManager.GetNovelWindowParts(), context, mapManager.GetCharacterEventSprite()); } //BGMの再生 allEventMgr.BGMAudioClipChangeEventSet(ResourcesSoundsLoader.GetInstance().GetSounds(SoundsPathSupervisor.GetInstance().GetPathDreamers_BattleIntro())); allEventMgr.BGMAudioPlayEventSet(); //戦闘の処理 EventMoveMap.BattleEvent(ResourcesSoundsLoader.GetInstance().GetSounds(SoundsPathSupervisor.GetInstance().GetPathDreamers_Battle())); }
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(); }
public SkillData(string skillDataName) { //初期化 addSelfParameterRanks_ = new List <AddParameterRankState>(); addOtherParameterRanks_ = new List <AddParameterRankState>(); addSelfAbnormalStates_ = new List <AddAbnormalTypeState>(); addOtherAbnormalStates_ = new List <AddAbnormalTypeState>(); effectValueType_ = new EffectValueTypeProvider(); ResourcesSkillData data = ResourcesSkillDatasLoader.GetInstance().GetSkillDatas(skillDataName); skillNumber_ = data.skillNumber_; skillName_ = data.skillName_; effectValue_ = data.effectValue_; optionEffectTriggerRateValue_ = data.optionEffectTriggerRateValue_; successRateValue_ = data.successRateValue_; upDpValue_ = data.upDpValue_; playPoint_ = data.playPoint_; nowPlayPoint_ = playPoint_; elementType_ = new ElementTypeState((ElementType)data.elementType_); effectValueType_.state_ = (EffectValueTypeState)data.effectValueType_; triggerPriority_ = data.triggerPriority_; criticalParameterRank_ = data.criticalParameterRank_; if (data.effectName_ == "NoneEffect") { effectAnimeSprites_.Add(ResourcesGraphicsLoader.GetInstance().GetGraphics("SkillEffect/" + data.effectName_)); } else { Sprite[] sprite = ResourcesGraphicsLoader.GetInstance().GetGraphicsAll("SkillEffect/" + data.effectName_); for (int i = 0; i < sprite.Length; ++i) { effectAnimeSprites_.Add(sprite[i]); } effectSound_ = ResourcesSoundsLoader.GetInstance().GetSounds("SE/SkillEffect/" + data.effectName_); } for (int i = 0; i < data.addSelfParameterRanks_.Length; ++i) { addSelfParameterRanks_.Add( new AddParameterRankState((AddParameterRank)data.addSelfParameterRanks_[i].addParameterRank_ , data.addSelfParameterRanks_[i].value_ )); } for (int i = 0; i < data.addOtherParameterRanks_.Length; ++i) { addOtherParameterRanks_.Add( new AddParameterRankState((AddParameterRank)data.addOtherParameterRanks_[i].addParameterRank_ , data.addOtherParameterRanks_[i].value_ )); } for (int i = 0; i < data.addSelfAbnormals_.Length; ++i) { addSelfAbnormalStates_.Add(new AddAbnormalTypeState((AddAbnormalType)data.addSelfAbnormals_[i].addAbnormal_)); } for (int i = 0; i < data.addOtherAbnormals_.Length; ++i) { addOtherAbnormalStates_.Add(new AddAbnormalTypeState((AddAbnormalType)data.addOtherAbnormals_[i].addAbnormal_)); } effectInfo_ = data.effectInfo_; }
//倒れた時の処理 public override void MonsterDownEventSet(BattleManager manager) { battleActiveMonsterSize_ -= 1; //dreamPoint_ += 45; //戦闘のモンスターをダウンさせる monsterDatas_[0].battleActive_ = false; //ウェイト AllEventManager.GetInstance().EventWaitSet(1.0f); //エネミーの画像の非表示 AllEventManager.GetInstance().UpdateGameObjectSet(manager.GetEnemyMonsterParts().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.GetEnemyStatusInfoParts()); // ////ウェイト //AllEventManager.GetInstance().EventWaitSet(manager.GetEventWaitTime()); //エネミーのステータスインフォの退場 AllEventManager.GetInstance().UpdateGameObjectSet(manager.GetEnemyStatusInfoParts().GetEventGameObject(), new Vector3(-13.5f, manager.GetEnemyStatusInfoParts().transform.position.y, manager.GetEnemyStatusInfoParts().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_Win())); 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(3.5f, manager.GetEnemyParts().transform.position.y, manager.GetEnemyParts().transform.position.z)); AllEventManager.GetInstance().UpdateGameObjectUpdateExecuteSet(UpdateGameObjectEventManagerExecute.PosMove); AllEventManager.GetInstance().AllUpdateEventExecute(1.5f); //ウェイト 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_ = true; //データの初期化 PlayerBattleData.ReleaseInstance(); EnemyTrainerData.ReleaseInstance(); EnemyBattleData.ReleaseInstance(); return; } //タイプ相性の測定 int[] typeSimillarResult = new int[3] { 0, 0, 0 }; int[] monsterNumbers = new int[3] { 0, 1, 2 }; for (int i = 0; i < monsterDatas_.Length; ++i) { //戦えたら if (monsterDatas_[i].battleActive_ && monsterDatas_[i].tribesData_.monsterNumber_ != 0) { { int simillarResult = PlayerBattleData.GetInstance().GetMonsterDatas(0).ElementSimillarCheckerForValue(monsterDatas_[i].tribesData_.firstElement_); typeSimillarResult[i] += simillarResult; } { int simillarResult = PlayerBattleData.GetInstance().GetMonsterDatas(0).ElementSimillarCheckerForValue(monsterDatas_[i].tribesData_.secondElement_); typeSimillarResult[i] += simillarResult; } } } t13.Utility.SimpleHiSort2Index(typeSimillarResult, monsterNumbers); //モンスターデータの入れ替え IMonsterData temp = monsterDatas_[0]; monsterDatas_[0] = monsterDatas_[monsterNumbers[0]]; monsterDatas_[monsterNumbers[0]] = temp; //ウェイト AllEventManager.GetInstance().EventWaitSet(1.0f); //文字列の処理 AllEventManager.GetInstance().EventTextSet( manager.GetNovelWindowParts().GetNovelWindowEventText(), EnemyTrainerData.GetInstance().GetName() + "は\n" + monsterDatas_[0].uniqueName_ + "を くりだした!" ); AllEventManager.GetInstance().EventTextsUpdateExecuteSet(EventTextEventManagerExecute.CharaUpdate); AllEventManager.GetInstance().AllUpdateEventExecute(manager.GetEventContextUpdateTime()); //SE AllEventManager.GetInstance().SEAudioPlayOneShotEventSet(ResourcesSoundsLoader.GetInstance().GetSounds(SoundsPathSupervisor.GetInstance().GetPathMonsterSet())); //モンスターの登場演出 { Sprite[] sprites = ResourcesGraphicsLoader.GetInstance().GetGraphicsAll("BattleScene/MonsterSetEffect"); List <Sprite> animeSprites = new List <Sprite>(); for (int i = 0; i < sprites.Length; ++i) { animeSprites.Add(sprites[i]); } AllEventManager.GetInstance().EventSpriteRendererSet(manager.GetEnemyEffectParts().GetEventSpriteRenderer(), animeSprites); AllEventManager.GetInstance().EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.Anime); AllEventManager.GetInstance().AllUpdateEventExecute(0.35f); } //ウェイト AllEventManager.GetInstance().EventWaitSet(manager.GetEventWaitTime() / 2); //画像の設定 if (monsterDatas_[0].battleData_.HaveAbnormalType(AbnormalType.Hero)) { List <Sprite> sprites = new List <Sprite>(); sprites.Add(monsterDatas_[0].tribesData_.frontDreamTex_); AllEventManager.GetInstance().EventSpriteRendererSet(manager.GetEnemyMonsterParts().GetEventMonsterSprite(), sprites, new Color32()); AllEventManager.GetInstance().EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.SpriteSet); AllEventManager.GetInstance().AllUpdateEventExecute(); } else { List <Sprite> sprites = new List <Sprite>(); sprites.Add(monsterDatas_[0].tribesData_.frontTex_); AllEventManager.GetInstance().EventSpriteRendererSet(manager.GetEnemyMonsterParts().GetEventMonsterSprite(), sprites, new Color32()); AllEventManager.GetInstance().EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.SpriteSet); AllEventManager.GetInstance().AllUpdateEventExecute(); } //ステータスインフォへの反映 manager.GetEnemyStatusInfoParts().MonsterStatusInfoSetEventSet(monsterDatas_[0]); //ウェイト AllEventManager.GetInstance().EventWaitSet(manager.GetEventWaitTime()); //エネミーの表示 AllEventManager.GetInstance().UpdateGameObjectSet(manager.GetEnemyMonsterParts().GetEventGameObject()); AllEventManager.GetInstance().UpdateGameObjectsActiveSetExecute(true); //ウェイト AllEventManager.GetInstance().EventWaitSet(manager.GetEventWaitTime()); //エネミーのステータスインフォの入場 AllEventManager.GetInstance().UpdateGameObjectSet(manager.GetEnemyStatusInfoParts().GetEventGameObject(), new Vector3(-3.5f, manager.GetEnemyStatusInfoParts().transform.position.y, manager.GetEnemyStatusInfoParts().transform.position.z)); AllEventManager.GetInstance().UpdateGameObjectUpdateExecuteSet(UpdateGameObjectEventManagerExecute.PosMove); AllEventManager.GetInstance().AllUpdateEventExecute(0.2f); //ウェイト AllEventManager.GetInstance().EventWaitSet(manager.GetEventWaitTime()); manager.ActiveUiCommand(); manager.InactiveUiCommand(); }
//交換処理 public override void MonsterChangeEventSet(BattleManager manager) { //モンスターの変更が行われていたら if (changeMonsterNumber_ > 0) { IMonsterData md = monsterDatas_[changeMonsterNumber_]; //先頭のパラメーターをリセット monsterDatas_[0].battleData_.RankReset(); AllEventManager.GetInstance().EventTextSet(manager.GetNovelWindowParts().GetNovelWindowEventText(), EnemyTrainerData.GetInstance().GetName() + "は\n" + monsterDatas_[0].uniqueName_ + "を ひっこめた!"); AllEventManager.GetInstance().EventTextsUpdateExecuteSet(EventTextEventManagerExecute.CharaUpdate); AllEventManager.GetInstance().AllUpdateEventExecute(manager.GetEventContextUpdateTime()); AllEventManager.GetInstance().EventWaitSet(manager.GetEventWaitTime()); AllEventManager.GetInstance().UpdateGameObjectSet(manager.GetEnemyMonsterParts().GetEventGameObject()); AllEventManager.GetInstance().UpdateGameObjectsActiveSetExecute(false); AllEventManager.GetInstance().EventWaitSet(manager.GetEventWaitTime()); AllEventManager.GetInstance().UpdateGameObjectSet(manager.GetEnemyStatusInfoParts().GetEventGameObject(), new Vector3(-13.5f, manager.GetEnemyStatusInfoParts().transform.position.y, manager.GetEnemyStatusInfoParts().transform.position.z)); AllEventManager.GetInstance().UpdateGameObjectUpdateExecuteSet(UpdateGameObjectEventManagerExecute.PosMove); AllEventManager.GetInstance().AllUpdateEventExecute(0.2f); AllEventManager.GetInstance().EventWaitSet(manager.GetEventWaitTime()); //モンスターデータの入れ替え IMonsterData temp = monsterDatas_[0]; monsterDatas_[0] = monsterDatas_[changeMonsterNumber_]; monsterDatas_[changeMonsterNumber_] = temp; AllEventManager.GetInstance().EventTextSet(manager.GetNovelWindowParts().GetNovelWindowEventText(), EnemyTrainerData.GetInstance().GetName() + "は\n" + md.uniqueName_ + "を くりだした!"); AllEventManager.GetInstance().EventTextsUpdateExecuteSet(EventTextEventManagerExecute.CharaUpdate); AllEventManager.GetInstance().AllUpdateEventExecute(manager.GetEventContextUpdateTime()); AllEventManager.GetInstance().EventWaitSet(manager.GetEventWaitTime()); //SE AllEventManager.GetInstance().SEAudioPlayOneShotEventSet(ResourcesSoundsLoader.GetInstance().GetSounds(SoundsPathSupervisor.GetInstance().GetPathMonsterSet())); //モンスターの登場演出 { Sprite[] sprites = ResourcesGraphicsLoader.GetInstance().GetGraphicsAll("BattleScene/MonsterSetEffect"); List <Sprite> animeSprites = new List <Sprite>(); for (int i = 0; i < sprites.Length; ++i) { animeSprites.Add(sprites[i]); } AllEventManager.GetInstance().EventSpriteRendererSet(manager.GetEnemyEffectParts().GetEventSpriteRenderer(), animeSprites); AllEventManager.GetInstance().EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.Anime); AllEventManager.GetInstance().AllUpdateEventExecute(0.35f); } //ウェイト AllEventManager.GetInstance().EventWaitSet(manager.GetEventWaitTime() / 2); //画像の設定 if (monsterDatas_[0].battleData_.HaveAbnormalType(AbnormalType.Hero)) { List <Sprite> sprites = new List <Sprite>(); sprites.Add(monsterDatas_[0].tribesData_.frontDreamTex_); AllEventManager.GetInstance().EventSpriteRendererSet(manager.GetEnemyMonsterParts().GetEventMonsterSprite(), sprites, new Color32()); AllEventManager.GetInstance().EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.SpriteSet); AllEventManager.GetInstance().AllUpdateEventExecute(); } else { List <Sprite> sprites = new List <Sprite>(); sprites.Add(monsterDatas_[0].tribesData_.frontTex_); AllEventManager.GetInstance().EventSpriteRendererSet(manager.GetEnemyMonsterParts().GetEventMonsterSprite(), sprites, new Color32()); AllEventManager.GetInstance().EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.SpriteSet); AllEventManager.GetInstance().AllUpdateEventExecute(); } //ステータスインフォへの反映 manager.GetEnemyStatusInfoParts().MonsterStatusInfoSetEventSet(monsterDatas_[0]); //エネミーの表示 AllEventManager.GetInstance().UpdateGameObjectSet(manager.GetEnemyMonsterParts().GetEventGameObject()); AllEventManager.GetInstance().UpdateGameObjectsActiveSetExecute(true); //ウェイト AllEventManager.GetInstance().EventWaitSet(manager.GetEventWaitTime()); //エネミーのステータスインフォの入場 AllEventManager.GetInstance().UpdateGameObjectSet(manager.GetEnemyStatusInfoParts().GetEventGameObject(), new Vector3(-3.5f, manager.GetEnemyStatusInfoParts().transform.position.y, manager.GetEnemyStatusInfoParts().transform.position.z)); AllEventManager.GetInstance().UpdateGameObjectUpdateExecuteSet(UpdateGameObjectEventManagerExecute.PosMove); AllEventManager.GetInstance().AllUpdateEventExecute(0.2f); } //ウェイト AllEventManager.GetInstance().EventWaitSet(manager.GetEventWaitTime()); changeMonsterNumber_ = 0; changeMonsterSkillNumber_ = 0; }
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()); } }
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 DreamSyncronizeEventSet(IMonsterData monsterData, Vector3 monsterStartPos, Vector3 monsterEndPos) { AllEventManager eventManager = AllEventManager.GetInstance(); AllSceneManager sceneManager = AllSceneManager.GetInstance(); //表示 eventManager.UpdateGameObjectSet(updateGameObject_); eventManager.UpdateGameObjectsActiveSetExecute(true); //モンスターの画像の設定 { List <Sprite> sprites = new List <Sprite>(); sprites.Add(monsterData.tribesData_.frontTex_); eventManager.EventSpriteRendererSet(monsterEventSprite_, sprites); eventManager.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.SpriteSet); eventManager.AllUpdateEventExecute(); } //モンスターの初期位置への移動 eventManager.UpdateGameObjectSet(monsterUpdateObject_, monsterStartPos); eventManager.UpdateGameObjectUpdateExecuteSet(UpdateGameObjectEventManagerExecute.PosMove); eventManager.AllUpdateEventExecute(); //ウェイト eventManager.EventWaitSet(0.5f); //モンスターを中心に移動 eventManager.UpdateGameObjectSet(monsterUpdateObject_, new Vector3(0, monsterStartPos.y, monsterStartPos.z)); eventManager.UpdateGameObjectUpdateExecuteSet(UpdateGameObjectEventManagerExecute.PosMove); eventManager.AllUpdateEventExecute(1.0f, t13.TimeFluctProcess.Sine); //ウェイト eventManager.EventWaitSet(0.8f); //進化後のモンスターの画像の設定 { List <Sprite> sprites = new List <Sprite>(); sprites.Add(monsterData.tribesData_.frontDreamTex_); eventManager.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.SpriteSet); eventManager.EventSpriteRendererSet(monsterEventSprite_, sprites); eventManager.AllUpdateEventExecute(); } //進化時SE eventManager.SEAudioPlayOneShotEventSet(ResourcesSoundsLoader.GetInstance().GetSounds(SoundsPathSupervisor.GetInstance().GetPathDreamEffect())); //進化エフェクト { Sprite[] sprites = ResourcesGraphicsLoader.GetInstance().GetGraphicsAll("BattleScene/MonsterDreamEffect"); List <Sprite> spriteList = new List <Sprite>(); for (int i = 0; i < sprites.Length; ++i) { spriteList.Add(sprites[i]); } eventManager.EventSpriteRendererSet(effectEventSprite_, spriteList); eventManager.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.Anime); eventManager.AllUpdateEventExecute(0.5f); } //ウェイト eventManager.EventWaitSet(0.8f); //モンスターの退場 eventManager.UpdateGameObjectSet(monsterUpdateObject_, monsterEndPos); eventManager.UpdateGameObjectUpdateExecuteSet(UpdateGameObjectEventManagerExecute.PosMove); eventManager.AllUpdateEventExecute(1.0f, t13.TimeFluctProcess.Quart); //ウェイト eventManager.EventWaitSet(0.5f); //非表示 eventManager.UpdateGameObjectSet(updateGameObject_); eventManager.UpdateGameObjectsActiveSetExecute(false); }
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; //技の取得 //for(int i = 1;i < 29; ++i) { // playerTrainerData.SkillAdd(new SkillData((SkillDataNumber)i)); //} //BGMの再生 AllSceneManager.GetInstance().GetPublicAudioParts().GetBGMAudioSource().clip = ResourcesSoundsLoader.GetInstance().GetSounds(SoundsPathSupervisor.GetInstance().GetPathDreamers_Map()); AllSceneManager.GetInstance().GetPublicAudioParts().GetBGMAudioSource().Play(); //選択肢の有り mapManager.monsterTradeSelectActive_ = true; //階層の移動の解放 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; //エネミーの設定 enemyTrainerData.SetTrainerData(ResourcesEnemyTrainerDatasLoader.GetInstance().GetEnemyTrainerDatas(3)); //技の取得 //for (int i = 49; i < 55; ++i) { // playerTrainerData.SkillAdd(new SkillData((SkillDataNumber)i)); //} //ノベル処理 { string context = ResourcesTextsLoader.GetInstance().GetTexts("Man/BattleVictory1"); EventMoveMap.NovelEvent(mapManager.GetNovelWindowParts(), context, mapManager.GetCharacterEventSprite()); } //イベントの最後 allEventMgr.EventFinishSet(); }
//交換処理 public override void MonsterChangeEventSet(BattleManager manager) { AllSceneManager allSceneMgr = AllSceneManager.GetInstance(); //モンスターの変更が行われていたら if (changeMonsterNumber_ > 0) { IMonsterData md = monsterDatas_[changeMonsterNumber_]; manager.playerSelectSkillNumber_ = changeMonsterSkillNumber_; //先頭のパラメーターをリセット monsterDatas_[0].battleData_.RankReset(); AllEventManager.GetInstance().EventStatusInfoPartsSet(manager.GetPlayerStatusInfoParts(), new Color32(0, 0, 0, 0)); AllEventManager.GetInstance().StatusInfoPartsUpdateExecuteSet(StatusInfoPartsEventManagerExecute.IdleMoveEnd); AllEventManager.GetInstance().AllUpdateEventExecute(); //先頭がダウンしていなかったら if (monsterDatas_[0].battleActive_ == true) { AllEventManager.GetInstance().EventTextSet(manager.GetNovelWindowParts().GetNovelWindowEventText(), monsterDatas_[0].uniqueName_ + "\n" + "もどれ!"); AllEventManager.GetInstance().EventTextsUpdateExecuteSet(EventTextEventManagerExecute.CharaUpdate); AllEventManager.GetInstance().AllUpdateEventExecute(manager.GetEventContextUpdateTime()); AllEventManager.GetInstance().EventWaitSet(manager.GetEventWaitTime()); AllEventManager.GetInstance().UpdateGameObjectSet(manager.GetPlayerMonsterParts().GetEventGameObject()); AllEventManager.GetInstance().UpdateGameObjectsActiveSetExecute(false); 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().EventWaitSet(manager.GetEventWaitTime()); AllEventManager.GetInstance().EventTextSet(manager.GetNovelWindowParts().GetNovelWindowEventText(), "ゆけ! " + md.uniqueName_ + "!"); AllEventManager.GetInstance().EventTextsUpdateExecuteSet(EventTextEventManagerExecute.CharaUpdate); AllEventManager.GetInstance().AllUpdateEventExecute(manager.GetEventContextUpdateTime()); AllEventManager.GetInstance().EventWaitSet(manager.GetEventWaitTime()); //SE AllEventManager.GetInstance().SEAudioPlayOneShotEventSet(ResourcesSoundsLoader.GetInstance().GetSounds(SoundsPathSupervisor.GetInstance().GetPathMonsterSet())); //モンスターの登場演出 { Sprite[] sprites = ResourcesGraphicsLoader.GetInstance().GetGraphicsAll("BattleScene/MonsterSetEffect"); List <Sprite> animeSprites = new List <Sprite>(); for (int i = 0; i < sprites.Length; ++i) { animeSprites.Add(sprites[i]); } AllEventManager.GetInstance().EventSpriteRendererSet(manager.GetPlayerEffectParts().GetEventSpriteRenderer(), animeSprites); AllEventManager.GetInstance().EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.Anime); AllEventManager.GetInstance().AllUpdateEventExecute(0.35f); } //ウェイト AllEventManager.GetInstance().EventWaitSet(manager.GetEventWaitTime() / 2); //画像の設定 if (md.battleData_.HaveAbnormalType(AbnormalType.Hero)) { List <Sprite> sprites = new List <Sprite>(); sprites.Add(md.tribesData_.backDreamTex_); AllEventManager.GetInstance().EventSpriteRendererSet(manager.GetPlayerMonsterParts().GetEventMonsterSprite(), sprites, new Color32()); AllEventManager.GetInstance().EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.SpriteSet); AllEventManager.GetInstance().AllUpdateEventExecute(); } else { List <Sprite> sprites = new List <Sprite>(); sprites.Add(md.tribesData_.backTex_); AllEventManager.GetInstance().EventSpriteRendererSet(manager.GetPlayerMonsterParts().GetEventMonsterSprite(), sprites, new Color32()); AllEventManager.GetInstance().EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.SpriteSet); AllEventManager.GetInstance().AllUpdateEventExecute(); } //ステータスインフォへの反映 manager.GetPlayerStatusInfoParts().MonsterStatusInfoSetEventSet(md); //攻撃技の反映 manager.GetAttackCommandParts().MonsterDataReflect(md, EnemyBattleData.GetInstance().GetMonsterDatas(0)); //ねむりの終了処理 manager.SleepProcessEnd(); IMonsterData temp = monsterDatas_[0]; monsterDatas_[0] = monsterDatas_[changeMonsterNumber_]; monsterDatas_[changeMonsterNumber_] = temp; //ねむりの開始処理 manager.SleepProcessStart(); manager.SleepUseStart(this); AllEventManager.GetInstance().UpdateGameObjectSet(manager.GetPlayerMonsterParts().GetEventGameObject()); AllEventManager.GetInstance().UpdateGameObjectsActiveSetExecute(true); AllEventManager.GetInstance().EventWaitSet(manager.GetEventWaitTime()); AllEventManager.GetInstance().UpdateGameObjectSet(manager.GetPlayerStatusInfoParts().GetEventGameObject(), new Vector3(-6.12f, manager.GetPlayerStatusInfoParts().transform.position.y, manager.GetPlayerStatusInfoParts().transform.position.z)); AllEventManager.GetInstance().UpdateGameObjectUpdateExecuteSet(UpdateGameObjectEventManagerExecute.PosMove); AllEventManager.GetInstance().AllUpdateEventExecute(0.2f); } AllEventManager.GetInstance().EventWaitSet(manager.GetEventWaitTime()); manager.ActiveUiCommand(); manager.InactiveUiCommand(); allSceneMgr.inputProvider_ = new InactiveInputProvider(); changeMonsterNumber_ = 0; changeMonsterSkillNumber_ = 0; }
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 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); }
public void SceneStart() { //依存性注入 inputSoundProvider_.state_ = TitleSceneInputSoundState.Normal; pressKeyLogoEventSprite_.blinkTimeRegulation_ = 0.8f; pressKeyLogoEventSprite_.GetBlinkState().state_ = UpdateSpriteRendererProcessBlink.In; pressKeyLogoEventSprite_.ProcessStateBlinkStartExecute(); AllSceneManager.GetInstance().inputProvider_ = new KeyBoardNormalTriggerInputProvider(); AllSceneManager.GetInstance().GetPublicFrontScreen().GetEventScreenSprite().ProcessStateChangeColorExecute( 5.0f , t13.TimeFluctProcess.Liner , new Color(0, 0, 0, 0) ); //BGMの再生 AllSceneManager.GetInstance().GetPublicAudioParts().GetBGMAudioSource().volume = 0.3f; AllSceneManager.GetInstance().GetPublicAudioParts().GetBGMAudioSource().clip = ResourcesSoundsLoader.GetInstance().GetSounds(SoundsPathSupervisor.GetInstance().GetPathDreamers_Title()); AllSceneManager.GetInstance().GetPublicAudioParts().GetBGMAudioSource().Play(); }
public IProcessState Update(BattleManager mgr) { ////DPの演出のイベント //mgr.PlayerEnemyStatusInfoPartsDPEffect(); //ウィンドウの表示 mgr.GetNovelWindowParts().gameObject.SetActive(true); //ウェイト AllEventManager.GetInstance().EventWaitSet(mgr.GetEventWaitTime()); //パワーアップしていたら if (PlayerBattleData.GetInstance().dreamSyncronize_ == true) { //dpの初期化 PlayerBattleData.GetInstance().DreamPointReset(); PlayerBattleData.GetInstance().dreamSyncronize_ = false; //ゆめの文字色の変更 mgr.GetDreamCommandSprite().color = new Color32(255, 255, 255, 255); //DPの演出のイベント mgr.GetPlayerDreamPointInfoParts().DPEffectEventSet(PlayerBattleData.GetInstance().GetDreamPoint()); //ウェイト AllEventManager.GetInstance().EventWaitSet(mgr.GetEventWaitTime()); //BGMの音量の減少 AllEventManager.GetInstance().BGMAudioVolumeChangeEventSet(0.15f); //パワーアップの演出 mgr.GetDreamEffectParts().DreamSyncronizeEventSet(PlayerBattleData.GetInstance().GetMonsterDatas(0), new Vector3(-13.0f, 0.8f, -1.0f), new Vector3(13.0f, 0.8f, -1.0f)); //画像の変更 { List <Sprite> sprites = new List <Sprite>(); sprites.Add(PlayerBattleData.GetInstance().GetMonsterDatas(0).tribesData_.backDreamTex_); AllEventManager.GetInstance().EventSpriteRendererSet(mgr.GetPlayerMonsterParts().GetEventMonsterSprite(), sprites); AllEventManager.GetInstance().EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.SpriteSet); AllEventManager.GetInstance().AllUpdateEventExecute(); } //BGMの変更 AllEventManager.GetInstance().BGMAudioClipChangeEventSet(ResourcesSoundsLoader.GetInstance().GetSounds(SoundsPathSupervisor.GetInstance().GetPathDreamers_Rock())); //BGMの再生 AllEventManager.GetInstance().BGMAudioVolumeChangeEventSet(0.3f); AllEventManager.GetInstance().BGMAudioPlayEventSet(); //能力変化の更新 string abnormalStateContext = new AddAbnormalTypeState(AddAbnormalType.Hero).AddAbnormalTypeExecute(PlayerBattleData.GetInstance().GetMonsterDatas(0)); //文字列のイベント AllEventManager.GetInstance().EventTextSet(mgr.GetNovelWindowParts().GetNovelWindowEventText(), abnormalStateContext); AllEventManager.GetInstance().EventTextsUpdateExecuteSet(EventTextEventManagerExecute.CharaUpdate); AllEventManager.GetInstance().AllUpdateEventExecute(mgr.GetEventContextUpdateTime()); //状態異常のイベントのセット PlayerBattleData.GetInstance().GetMonsterDatas(0).battleData_.AbnormalSetStatusInfoPartsEventSet(mgr.GetPlayerStatusInfoParts()); //ウェイト AllEventManager.GetInstance().EventWaitSet(mgr.GetEventWaitTime()); //ねむりの終了処理 mgr.SleepProcessEnd(); //ウェイト AllEventManager.GetInstance().EventWaitSet(mgr.GetEventWaitTime()); } //パワーアップしていたら if (EnemyBattleData.GetInstance().dreamSyncronize_ == true) { //dpの初期化 EnemyBattleData.GetInstance().DreamPointReset(); EnemyBattleData.GetInstance().dreamSyncronize_ = false; //DPの演出のイベント mgr.GetEnemyDreamPointInfoParts().DPEffectEventSet(EnemyBattleData.GetInstance().GetDreamPoint()); //ウェイト AllEventManager.GetInstance().EventWaitSet(mgr.GetEventWaitTime()); //BGMの音量の減少 AllEventManager.GetInstance().BGMAudioVolumeChangeEventSet(0.15f); //パワーアップの演出 mgr.GetDreamEffectParts().DreamSyncronizeEventSet(EnemyBattleData.GetInstance().GetMonsterDatas(0), new Vector3(13.0f, 0.8f, -1.0f), new Vector3(-13.0f, 0.8f, -1.0f)); //画像の変更 { List <Sprite> sprites = new List <Sprite>(); sprites.Add(EnemyBattleData.GetInstance().GetMonsterDatas(0).tribesData_.frontDreamTex_); AllEventManager.GetInstance().EventSpriteRendererSet(mgr.GetEnemyMonsterParts().GetEventMonsterSprite(), sprites); AllEventManager.GetInstance().EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.SpriteSet); AllEventManager.GetInstance().AllUpdateEventExecute(); } //BGMの再生 AllEventManager.GetInstance().BGMAudioVolumeChangeEventSet(0.3f); //能力変化の更新 string abnormalStateContext = new AddAbnormalTypeState(AddAbnormalType.Hero).AddAbnormalTypeExecute(EnemyBattleData.GetInstance().GetMonsterDatas(0)); //文字列のイベント AllEventManager.GetInstance().EventTextSet(mgr.GetNovelWindowParts().GetNovelWindowEventText(), abnormalStateContext); AllEventManager.GetInstance().EventTextsUpdateExecuteSet(EventTextEventManagerExecute.CharaUpdate); AllEventManager.GetInstance().AllUpdateEventExecute(mgr.GetEventContextUpdateTime()); //状態異常のイベントのセット EnemyBattleData.GetInstance().GetMonsterDatas(0).battleData_.AbnormalSetStatusInfoPartsEventSet(mgr.GetEnemyStatusInfoParts()); //ウェイト AllEventManager.GetInstance().EventWaitSet(mgr.GetEventWaitTime()); } //交換されていたら if (PlayerBattleData.GetInstance().changeMonsterActive_ == true) { PlayerBattleData.GetInstance().MonsterChangeEventSet(mgr); } //交換されていたら if (EnemyBattleData.GetInstance().changeMonsterActive_ == true) { EnemyBattleData.GetInstance().MonsterChangeEventSet(mgr); } //現在、場に出ているモンスターのデータの取得 IMonsterData enemyMonsterData = EnemyBattleData.GetInstance().GetMonsterDatas(0); IMonsterData playerMonsterData = PlayerBattleData.GetInstance().GetMonsterDatas(0); //現在、場に出ているモンスターの選択技のデータの取得 ISkillData enemySkillData = enemyMonsterData.GetSkillDatas(mgr.enemySelectSkillNumber_); ISkillData playerSkillData = playerMonsterData.GetSkillDatas(mgr.playerSelectSkillNumber_); //技の優先度で行動順を決める if (enemySkillData.triggerPriority_ < playerSkillData.triggerPriority_) { //プレイヤーの戦闘処理 SkillResultSet( mgr , mgr.GetPlayerEffectParts() , mgr.GetEnemyEffectParts() , mgr.GetEnemyMonsterParts() , mgr.GetPlayerStatusInfoParts() , mgr.GetEnemyStatusInfoParts() , mgr.GetPlayerDreamPointInfoParts() , mgr.GetEnemyDreamPointInfoParts() , PlayerBattleData.GetInstance() , EnemyBattleData.GetInstance() , playerMonsterData, playerSkillData, enemyMonsterData ); //エネミーの戦闘処理 SkillResultSet( mgr , mgr.GetEnemyEffectParts() , mgr.GetPlayerEffectParts() , mgr.GetPlayerMonsterParts() , mgr.GetEnemyStatusInfoParts() , mgr.GetPlayerStatusInfoParts() , mgr.GetEnemyDreamPointInfoParts() , mgr.GetPlayerDreamPointInfoParts() , EnemyBattleData.GetInstance() , PlayerBattleData.GetInstance() , enemyMonsterData, enemySkillData, playerMonsterData ); } else if (enemySkillData.triggerPriority_ > playerSkillData.triggerPriority_) { //エネミーの戦闘処理 SkillResultSet( mgr , mgr.GetEnemyEffectParts() , mgr.GetPlayerEffectParts() , mgr.GetPlayerMonsterParts() , mgr.GetEnemyStatusInfoParts() , mgr.GetPlayerStatusInfoParts() , mgr.GetEnemyDreamPointInfoParts() , mgr.GetPlayerDreamPointInfoParts() , EnemyBattleData.GetInstance() , PlayerBattleData.GetInstance() , enemyMonsterData, enemySkillData, playerMonsterData ); //プレイヤーの戦闘処理 SkillResultSet( mgr , mgr.GetPlayerEffectParts() , mgr.GetEnemyEffectParts() , mgr.GetEnemyMonsterParts() , mgr.GetPlayerStatusInfoParts() , mgr.GetEnemyStatusInfoParts() , mgr.GetPlayerDreamPointInfoParts() , mgr.GetEnemyDreamPointInfoParts() , PlayerBattleData.GetInstance() , EnemyBattleData.GetInstance() , playerMonsterData, playerSkillData, enemyMonsterData ); } //素早さで行動順を決める else if ((enemyMonsterData.RealSpeed() * enemyMonsterData.battleData_.RealSpeedParameterRank()) < (playerMonsterData.RealSpeed() * playerMonsterData.battleData_.RealSpeedParameterRank())) { //プレイヤーの戦闘処理 SkillResultSet( mgr , mgr.GetPlayerEffectParts() , mgr.GetEnemyEffectParts() , mgr.GetEnemyMonsterParts() , mgr.GetPlayerStatusInfoParts() , mgr.GetEnemyStatusInfoParts() , mgr.GetPlayerDreamPointInfoParts() , mgr.GetEnemyDreamPointInfoParts() , PlayerBattleData.GetInstance() , EnemyBattleData.GetInstance() , playerMonsterData, playerSkillData, enemyMonsterData ); //エネミーの戦闘処理 SkillResultSet( mgr , mgr.GetEnemyEffectParts() , mgr.GetPlayerEffectParts() , mgr.GetPlayerMonsterParts() , mgr.GetEnemyStatusInfoParts() , mgr.GetPlayerStatusInfoParts() , mgr.GetEnemyDreamPointInfoParts() , mgr.GetPlayerDreamPointInfoParts() , EnemyBattleData.GetInstance() , PlayerBattleData.GetInstance() , enemyMonsterData, enemySkillData, playerMonsterData ); } else if ((enemyMonsterData.RealSpeed() * enemyMonsterData.battleData_.RealSpeedParameterRank()) == (playerMonsterData.RealSpeed() * playerMonsterData.battleData_.RealSpeedParameterRank())) { if (AllSceneManager.GetInstance().GetRandom().Next(0, 2) < 1) { //プレイヤーの戦闘処理 SkillResultSet( mgr , mgr.GetPlayerEffectParts() , mgr.GetEnemyEffectParts() , mgr.GetEnemyMonsterParts() , mgr.GetPlayerStatusInfoParts() , mgr.GetEnemyStatusInfoParts() , mgr.GetPlayerDreamPointInfoParts() , mgr.GetEnemyDreamPointInfoParts() , PlayerBattleData.GetInstance() , EnemyBattleData.GetInstance() , playerMonsterData, playerSkillData, enemyMonsterData ); //エネミーの戦闘処理 SkillResultSet( mgr , mgr.GetEnemyEffectParts() , mgr.GetPlayerEffectParts() , mgr.GetPlayerMonsterParts() , mgr.GetEnemyStatusInfoParts() , mgr.GetPlayerStatusInfoParts() , mgr.GetEnemyDreamPointInfoParts() , mgr.GetPlayerDreamPointInfoParts() , EnemyBattleData.GetInstance() , PlayerBattleData.GetInstance() , enemyMonsterData, enemySkillData, playerMonsterData ); } else { //エネミーの戦闘処理 SkillResultSet( mgr , mgr.GetEnemyEffectParts() , mgr.GetPlayerEffectParts() , mgr.GetPlayerMonsterParts() , mgr.GetEnemyStatusInfoParts() , mgr.GetPlayerStatusInfoParts() , mgr.GetEnemyDreamPointInfoParts() , mgr.GetPlayerDreamPointInfoParts() , EnemyBattleData.GetInstance() , PlayerBattleData.GetInstance() , enemyMonsterData, enemySkillData, playerMonsterData ); //プレイヤーの戦闘処理 SkillResultSet( mgr , mgr.GetPlayerEffectParts() , mgr.GetEnemyEffectParts() , mgr.GetEnemyMonsterParts() , mgr.GetPlayerStatusInfoParts() , mgr.GetEnemyStatusInfoParts() , mgr.GetPlayerDreamPointInfoParts() , mgr.GetEnemyDreamPointInfoParts() , PlayerBattleData.GetInstance() , EnemyBattleData.GetInstance() , playerMonsterData, playerSkillData, enemyMonsterData ); } } else { //エネミーの戦闘処理 SkillResultSet( mgr , mgr.GetEnemyEffectParts() , mgr.GetPlayerEffectParts() , mgr.GetPlayerMonsterParts() , mgr.GetEnemyStatusInfoParts() , mgr.GetPlayerStatusInfoParts() , mgr.GetEnemyDreamPointInfoParts() , mgr.GetPlayerDreamPointInfoParts() , EnemyBattleData.GetInstance() , PlayerBattleData.GetInstance() , enemyMonsterData, enemySkillData, playerMonsterData ); //プレイヤーの戦闘処理 SkillResultSet( mgr , mgr.GetPlayerEffectParts() , mgr.GetEnemyEffectParts() , mgr.GetEnemyMonsterParts() , mgr.GetPlayerStatusInfoParts() , mgr.GetEnemyStatusInfoParts() , mgr.GetPlayerDreamPointInfoParts() , mgr.GetEnemyDreamPointInfoParts() , PlayerBattleData.GetInstance() , EnemyBattleData.GetInstance() , playerMonsterData, playerSkillData, enemyMonsterData ); } //白紙に AllEventManager.GetInstance().EventTextSet(mgr.GetNovelWindowParts().GetNovelWindowEventText(), " "); AllEventManager.GetInstance().EventTextsUpdateExecuteSet(EventTextEventManagerExecute.CharaUpdate); AllEventManager.GetInstance().AllUpdateEventExecute(); //ウェイト AllEventManager.GetInstance().EventWaitSet(0.5f); //イベントの最後 AllEventManager.GetInstance().EventFinishSet(); //交換判定の初期化 PlayerBattleData.GetInstance().changeMonsterActive_ = false; EnemyBattleData.GetInstance().changeMonsterActive_ = false; return(mgr.nowProcessState().NextProcess()); }