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 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); }
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())); }