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; } } }
public override void Execute(MonsterMenuManager monsterMenuManager) { 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); }
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 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(); 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(); //カーソルが動いていたら 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()) { //None以外だったら if (playerData.GetMonsterDatas(monsterMenuManager.selectMonsterNumber_).GetSkillDatas(monsterMenuManager.GetSkillCommandParts().SelectNumber()).skillNumber_ != (int)SkillDataNumber.None) { //SE monsterMenuManager.GetInputSoundProvider().SelectEnter(); //スワップ中 if (monsterMenuManager.swapActive_) { //スワップ選択中のモンスターと選択中のモンスターが一緒ではなかったら if (monsterMenuManager.swapSelectNumber_ != monsterMenuManager.GetSkillCommandParts().SelectNumber()) { //スワップ処理 playerData.GetMonsterDatas(monsterMenuManager.selectMonsterNumber_).SkillSwap(monsterMenuManager.GetSkillCommandParts().SelectNumber(), monsterMenuManager.swapSelectNumber_); //技の情報の反映 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_); } } monsterMenuManager.swapActive_ = false; //技の画像の色の変更 monsterMenuManager.GetSkillInfoMenuParts().GetSkillInfoMenuSprite(monsterMenuManager.swapSelectNumber_).color = new Color32(255, 255, 255, 255); } else { monsterMenuManager.GetSkillActionCommandParts().gameObject.SetActive(true); monsterMenuManager.GetSkillCommandParts().commandWindowChoicesColliderInactive(); return(MonsterMenuSceneProcess.SkillActionSelect); } } } else if (sceneMgr.inputProvider_.SelectBack() || sceneMgr.inputProvider_.SelectMouseRightTrigger()) { //スワップ中じゃなかったら if (!monsterMenuManager.swapActive_) { 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(); 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()) { } 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_); }