public override MonsterMenuSceneProcess Update(MonsterMenuManager monsterMenuManager)
    {
        AllSceneManager sceneMgr = AllSceneManager.GetInstance();
        AllEventManager eventMgr = AllEventManager.GetInstance();

        if (eventMgr.EventUpdate())
        {
            return(MonsterMenuSceneProcess.SkillSelect);
        }

        if (sceneMgr.inputProvider_.UpSelect())
        {
        }
        else if (sceneMgr.inputProvider_.DownSelect())
        {
        }
        else if (sceneMgr.inputProvider_.RightSelect())
        {
        }
        else if (sceneMgr.inputProvider_.LeftSelect())
        {
        }
        else if (sceneMgr.inputProvider_.SelectEnter() ||
                 sceneMgr.inputProvider_.SelectMouseLeftTrigger())
        {
            eventMgr.EventTriggerNext();
        }
        else if (sceneMgr.inputProvider_.SelectBack())
        {
        }

        return(monsterMenuManager.GetNowProcessState().state_);
    }
    public override MapSceneProcess Update(MapManager mapManager)
    {
        AllSceneManager   allSceneMgr = AllSceneManager.GetInstance();
        AllEventManager   allEventMgr = AllEventManager.GetInstance();
        PlayerTrainerData playerData  = PlayerTrainerData.GetInstance();

        AllEventManager.GetInstance().EventUpdate();

        if (playerData.battleEnd_)
        {
            playerData.battleEnd_ = false;

            if (playerData.battleResult_)
            {
                mapManager.nowEventMoveMap_.executeEventNum_ = 2;
            }
            else
            {
                mapManager.nowEventMoveMap_.executeEventNum_ = 3;
            }

            //操作の変更
            allSceneMgr.inputProvider_ = new KeyBoardSelectInactiveTriggerInputProvider();

            mapManager.GetPlayerMoveMap().is_move = false;

            //フェードイン
            allEventMgr.EventSpriteRendererSet(
                allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite()
                , null
                , new Color(allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.r, allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.g, allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.b, 0)
                );
            allEventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor);
            allEventMgr.AllUpdateEventExecute(0.4f);

            //戦闘結果イベントの実行
            mapManager.nowEventMoveMap_.GetEventSetFuncs()[mapManager.nowEventMoveMap_.executeEventNum_](mapManager.nowEventMoveMap_, mapManager);

            mapManager.eventBackProcess_ = mapManager.GetProcessProvider().state_;
            return(MapSceneProcess.EventExecute);
        }

        //イベントがエントリーゾーンにあったら
        if (mapManager.GetPlayerMoveMap().GetEntryZone()._collision_object)
        {
            EventMoveMap eventObject = mapManager.GetPlayerMoveMap().GetEntryZone()._collision_object;

            if (eventObject.GetTriggerState().EventTrigger(mapManager.GetPlayerMoveMap().GetEntryZone(), mapManager.GetPlayerMoveMap()))
            {
                eventObject.GetEventSetFuncs()[eventObject.executeEventNum_](eventObject, mapManager);

                mapManager.GetPlayerMoveMap().is_move = false;

                //操作の変更
                allSceneMgr.inputProvider_ = new KeyBoardSelectInactiveTriggerInputProvider();

                mapManager.nowEventMoveMap_ = eventObject;

                mapManager.eventBackProcess_ = mapManager.GetProcessProvider().state_;
                return(MapSceneProcess.EventExecute);
            }
        }

        if (allSceneMgr.inputProvider_.UpSelect())
        {
        }
        else if (allSceneMgr.inputProvider_.DownSelect())
        {
        }
        else if (allSceneMgr.inputProvider_.RightSelect())
        {
        }
        else if (allSceneMgr.inputProvider_.LeftSelect())
        {
        }
        else if (allSceneMgr.inputProvider_.SelectEnter() ||
                 allSceneMgr.inputProvider_.SelectMouseLeftTrigger())
        {
            allEventMgr.EventTriggerNext();
        }
        else if (allSceneMgr.inputProvider_.SelectBack())
        {
        }
        else if (allSceneMgr.inputProvider_.SelectNovelWindowActive())
        {
        }
        else if (allSceneMgr.inputProvider_.SelectMenu() ||
                 allSceneMgr.inputProvider_.SelectMouseRightTrigger())
        {
            //SE
            mapManager.GetInputSoundProvider().SelectMenu();

            mapManager.GetPlayerMoveMap().is_move = false;
            mapManager.GetCommandParts().gameObject.SetActive(true);

            //操作の変更
            allSceneMgr.inputProvider_ = new KeyBoardNormalTriggerInputProvider();

            return(MapSceneProcess.MenuSelect);
        }

        return(mapManager.GetProcessProvider().state_);
    }
コード例 #3
0
    public override MapSceneProcess Update(MapManager mapManager)
    {
        AllSceneManager   allSceneMgr = AllSceneManager.GetInstance();
        AllEventManager   allEventMgr = AllEventManager.GetInstance();
        PlayerTrainerData playerData  = PlayerTrainerData.GetInstance();

        //プレイヤーが動いていなかったら
        if (!mapManager.GetPlayerMoveMap().GetMapMoveActive())
        {
            if (AllEventManager.GetInstance().EventUpdate())
            {
                if (mapManager.monsterTradeSelectActive_)
                {
                    mapManager.monsterTradeSelectActive_ = false;

                    //操作の変更
                    allSceneMgr.inputProvider_ = new KeyBoardNormalTriggerInputProvider();

                    //選択肢の名前の反映
                    for (int i = 0; i < mapManager.GetTradeMonsterSelectCommandParts().GetCommandWindowTextsCount() - 1; ++i)
                    {
                        mapManager.GetTradeMonsterSelectCommandParts().CommandWindowChoiceTextChange(i, " " + EnemyTrainerData.GetInstance().GetMonsterDatas(i).tribesData_.monsterName_);
                    }

                    //選択肢の表示
                    mapManager.GetTradeMonsterSelectCommandParts().gameObject.SetActive(true);

                    return(MapSceneProcess.TradeMonsterSelect);
                }
                else
                {
                    allSceneMgr.inputProvider_ = new KeyBoardNormalInputProvider();

                    mapManager.GetPlayerMoveMap().is_move = true;

                    return(mapManager.eventBackProcess_);
                }
            }
        }

        if (allSceneMgr.inputProvider_.UpSelect())
        {
        }
        else if (allSceneMgr.inputProvider_.DownSelect())
        {
        }
        else if (allSceneMgr.inputProvider_.RightSelect())
        {
        }
        else if (allSceneMgr.inputProvider_.LeftSelect())
        {
        }
        else if (allSceneMgr.inputProvider_.SelectEnter() ||
                 allSceneMgr.inputProvider_.SelectMouseLeftTrigger())
        {
            allEventMgr.EventTriggerNext();
        }
        else if (allSceneMgr.inputProvider_.SelectBack())
        {
        }
        else if (allSceneMgr.inputProvider_.SelectNovelWindowActive())
        {
        }
        else if (allSceneMgr.inputProvider_.SelectMenu())
        {
        }

        return(mapManager.GetProcessProvider().state_);
    }
コード例 #4
0
    public void SceneUpdate()
    {
        AllEventManager eventMgr = AllEventManager.GetInstance();
        AllSceneManager sceneMgr = AllSceneManager.GetInstance();

        if (!PlayerTrainerData.GetInstance().prepareContinue_)
        {
            novelWindowParts_.GetNovelBlinkIconParts().GetNovelBlinkIconEventSprite().blinkTimeRegulation_   = 0.5f;
            novelWindowParts_.GetNovelBlinkIconParts().GetNovelBlinkIconEventSprite().GetBlinkState().state_ = UpdateSpriteRendererProcessBlink.In;

            //データのセーブ
            SaveDataTrasfer.GetInstance().ContinueDataSave();

            //プレイヤーデータの初期化
            PlayerTrainerData.ReleaseInstance();
            PlayerTrainerData.GetInstance().prepareContinue_ = true;

            //操作の変更
            sceneMgr.inputProvider_ = new KeyBoardNormalTriggerInputProvider();

            //フェードイン
            eventMgr.EventSpriteRendererSet(
                sceneMgr.GetPublicFrontScreen().GetEventScreenSprite()
                , null
                , new Color(sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.r, sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.g, sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.b, 0)
                );
            eventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor);
            eventMgr.AllUpdateEventExecute(0.4f);

            //ノベル処理
            {
                string context = ResourcesTextsLoader.GetInstance().GetTexts("GameContinue/GameContinue2");
                EventMoveMap.NovelEvent(novelWindowParts_, context);
            }

            //フェードアウト
            eventMgr.EventSpriteRendererSet(
                sceneMgr.GetPublicFrontScreen().GetEventScreenSprite()
                , null
                , new Color(sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.r, sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.g, sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.b, 255)
                );
            eventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor);
            eventMgr.AllUpdateEventExecute(sceneMgr.GetEventWaitTime() * 3);

            //イベントの最後
            //シーンの切り替え
            eventMgr.SceneChangeEventSet(SceneState.Title, SceneChangeMode.Change);
        }

        eventMgr.EventUpdate();

        if (sceneMgr.inputProvider_.UpSelect())
        {
        }
        else if (sceneMgr.inputProvider_.DownSelect())
        {
        }
        else if (sceneMgr.inputProvider_.RightSelect())
        {
        }
        else if (sceneMgr.inputProvider_.LeftSelect())
        {
        }
        else if (sceneMgr.inputProvider_.SelectEnter() ||
                 sceneMgr.inputProvider_.SelectMouseLeftTrigger())
        {
            eventMgr.EventTriggerNext();
        }
        else if (sceneMgr.inputProvider_.SelectBack())
        {
        }
    }