static public void ObjectMovePosXEvent(ObjectMoveMap objectMoveMap, int addValue, float timeRgulation) { AllEventManager allEventMgr = AllEventManager.GetInstance(); AllSceneManager allSceneMgr = AllSceneManager.GetInstance(); allEventMgr.UpdateGameObjectSet(objectMoveMap.GetUpdateGameObject(), new Vector3(objectMoveMap.gameObject.transform.position.x + addValue, objectMoveMap.gameObject.transform.position.y, objectMoveMap.gameObject.transform.position.z)); allEventMgr.UpdateGameObjectUpdateExecuteSet(UpdateGameObjectEventManagerExecute.PosMove); allEventMgr.AllUpdateEventExecute(timeRgulation); if (addValue < 0) { objectMoveMap.MapMoveLeft(System.Math.Abs(addValue)); } else { objectMoveMap.MapMoveRight(System.Math.Abs(addValue)); } }
public IProcessState Update(BattleManager mgr) { AllEventManager eventMgr = AllEventManager.GetInstance(); AllSceneManager sceneMgr = AllSceneManager.GetInstance(); //敵の思考時間の処理 EnemyBattleData.GetInstance().ThinkingTimeCounter(); //モンスターが交換されていたら if (PlayerBattleData.GetInstance().changeMonsterActive_) { executeProvider_.state_ = BattleSceneStartCommandExecuteState.Attack; mgr.ActiveUiStartCommand(); mgr.InactiveUiStartCommand(); //フェードイン eventMgr.EventSpriteRendererSet( sceneMgr.GetPublicFrontScreen().GetEventScreenSprite() , null , new Color(sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.r, sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.g, sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.b, 0) ); eventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); eventMgr.AllUpdateEventExecute(0.4f); eventMgr.UpdateGameObjectSet(mgr.GetStartCommandParts().GetEventGameObject()); eventMgr.UpdateGameObjectsActiveSetExecute(true); //dpが100以上だったら //if (PlayerBattleData.GetInstance().GetDreamPoint() >= 100) { // eventMgr.EventTextSet(mgr.GetNovelWindowParts().GetNovelWindowEventText() // , "ゆめたちが \n" // + "きょうめいしている・・・"); // eventMgr.EventTextsUpdateExecuteSet(EventTextEventManagerExecute.CharaUpdate); // eventMgr.AllUpdateEventExecute(); //} //else { // eventMgr.EventTextSet(mgr.GetNovelWindowParts().GetNovelWindowEventText(), PlayerBattleData.GetInstance().GetMonsterDatas(0).uniqueName_ + "は どうする?"); // eventMgr.EventTextsUpdateExecuteSet(EventTextEventManagerExecute.CharaUpdate); // eventMgr.AllUpdateEventExecute(); //} eventMgr.EventStatusInfoPartsSet(mgr.GetPlayerStatusInfoParts(), new Color32(0, 0, 0, 0)); eventMgr.StatusInfoPartsUpdateExecuteSet(StatusInfoPartsEventManagerExecute.IdleMoveStart); eventMgr.AllUpdateEventExecute(); //イベントの最後 eventMgr.EventFinishSet(); PlayerBattleData.GetInstance().changeMonsterActive_ = false; } //やけどのダメージ処理 if (mgr.BurnsDamageProcess(PlayerBattleData.GetInstance(), mgr.GetPlayerStatusInfoParts(), mgr.GetPlayerMonsterParts())) { return(new CommandEventExecuteProcess()); } if (EnemyBattleData.GetInstance().GetThinkingEnd() == false) { //やけどのダメージ処理 if (mgr.BurnsDamageProcess(EnemyBattleData.GetInstance(), mgr.GetEnemyStatusInfoParts(), mgr.GetEnemyMonsterParts())) { return(new CommandEventExecuteProcess()); } if (EnemyBattleData.GetInstance().PoinsonCounter()) { //どくのダメージ処理 mgr.PoisonDamageProcess(EnemyBattleData.GetInstance(), mgr.GetEnemyStatusInfoParts(), mgr.GetEnemyMonsterParts()); if (mgr.PoisonDamageDown()) { return(new CommandEventExecuteProcess()); } } } if (AllEventManager.GetInstance().EventUpdate()) { sceneMgr.inputProvider_ = new KeyBoardNormalTriggerInputProvider(); } //カーソルが動いていたら int commandSelectNumber = mgr.GetStartCommandParts().CommandSelectForNumber(new Vector3(), new Vector3(0, 1.32f, 0)); if (commandSelectNumber > -1) { //SE mgr.GetInputSoundProvider().UpSelect(); executeProvider_.state_ = (BattleSceneStartCommandExecuteState)mgr.GetStartCommandParts().SelectNumber() + 1; //どくのダメージ処理 mgr.PoisonDamageProcess(PlayerBattleData.GetInstance(), mgr.GetPlayerStatusInfoParts(), mgr.GetPlayerMonsterParts()); } else if (sceneMgr.inputProvider_.UpSelect()) { //選択肢が動かせたら if (mgr.GetStartCommandParts().CommandSelectUp(new Vector3(0, 1.33f, 0))) { //SE mgr.GetInputSoundProvider().UpSelect(); executeProvider_.state_ = (BattleSceneStartCommandExecuteState)mgr.GetStartCommandParts().SelectNumber() + 1; //どくのダメージ処理 mgr.PoisonDamageProcess(PlayerBattleData.GetInstance(), mgr.GetPlayerStatusInfoParts(), mgr.GetPlayerMonsterParts()); } } else if (sceneMgr.inputProvider_.DownSelect()) { //選択肢が動かせたら if (mgr.GetStartCommandParts().CommandSelectDown(new Vector3(0, -1.33f, 0))) { //SE mgr.GetInputSoundProvider().DownSelect(); executeProvider_.state_ = (BattleSceneStartCommandExecuteState)mgr.GetStartCommandParts().SelectNumber() + 1; //どくのダメージ処理 mgr.PoisonDamageProcess(PlayerBattleData.GetInstance(), mgr.GetPlayerStatusInfoParts(), mgr.GetPlayerMonsterParts()); } } else if (sceneMgr.inputProvider_.RightSelect()) { } else if (sceneMgr.inputProvider_.LeftSelect()) { } else if (sceneMgr.inputProvider_.SelectEnter() || mgr.GetStartCommandParts().MouseLeftButtonTriggerActive()) { return(executeProvider_.Execute(mgr)); } //どくで倒れたら if (mgr.PoisonDamageDown()) { return(new CommandEventExecuteProcess()); } return(this); }
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_); }
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); }
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); }