public void SceneStart()
    {
        AllEventManager eventMgr = AllEventManager.GetInstance();
        AllSceneManager sceneMgr = AllSceneManager.GetInstance();

        novelWindowParts_.GetNovelBlinkIconParts().GetNovelBlinkIconEventSprite().blinkTimeRegulation_   = 0.5f;
        novelWindowParts_.GetNovelBlinkIconParts().GetNovelBlinkIconEventSprite().GetBlinkState().state_ = UpdateSpriteRendererProcessBlink.In;

        PlayerTrainerData.GetInstance().prepareContinue_ = 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, 0)
            );
        eventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor);
        eventMgr.AllUpdateEventExecute();

        //ウェイト
        eventMgr.EventWaitSet(2.0f);

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

        //ウェイト
        eventMgr.EventWaitSet(sceneMgr.GetEventWaitTime());

        //フェードアウト
        eventMgr.EventSpriteRendererSet(
            sceneMgr.GetPublicFrontScreen().GetEventScreenSprite()
            , null
            , new Color(0, 0, 0, 1)
            );
        eventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor);
        eventMgr.AllUpdateEventExecute(0.4f);

        //イベントの最後
        //シーンの切り替え
        MonsterMenuManager.SetProcessStateProvider(new MonsterMenuSceneNormalProcessStateProvider());
        eventMgr.SceneChangeEventSet(SceneState.MonsterMenu, SceneChangeMode.Slide);
    }
    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();
    }
    private static void TradeAfter(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;

        //バトル後のイベントへ
        eventMoveMap.executeEventNum_ = 4;

        //ノベル処理
        {
            string context = ResourcesTextsLoader.GetInstance().GetTexts("Man/TradeAfter1");
            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 SceneUpdate()
    {
        AllEventManager.GetInstance().EventUpdate();

        if (AllSceneManager.GetInstance().inputProvider_.AnyKeyTrigger())
        {
            AllEventManager eventMgr = AllEventManager.GetInstance();
            AllSceneManager sceneMgr = AllSceneManager.GetInstance();

            //SE
            AllSceneManager.GetInstance().GetPublicAudioParts().GetSEAudioSource().volume = 1.0f;
            inputSoundProvider_.SelectEnter();

            pressKeyLogoEventSprite_.blinkTimeRegulation_ = 0.1f;

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

            //スクリーンの非表示
            AllSceneManager.GetInstance().GetPublicFrontScreen().GetEventScreenSprite().ProcessReset();
            AllSceneManager.GetInstance().GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color = new Color(0, 0, 0, 0);

            //ウェイト
            eventMgr.EventWaitSet(1.0f);

            //フェードアウト
            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.SaveDataSelect, SceneChangeMode.Change);
        }
    }
    public void SceneUpdate()
    {
        AllEventManager eventMgr = AllEventManager.GetInstance();
        AllSceneManager sceneMgr = AllSceneManager.GetInstance();

        if (AllEventManager.GetInstance().EventUpdate())
        {
            sceneMgr.inputProvider_ = new KeyBoardNormalTriggerInputProvider();
        }

        //カーソルが動いていたら
        int commandSelectNumber = commandParts_.CommandSelectForNumber(new Vector3(), new Vector3(0, 1.9f, 0));

        if (commandSelectNumber > -1)
        {
            //説明の画像
            if (commandSelectNumber == 0)
            {
                dataSelectInfoSprite_.sprite = ResourcesGraphicsLoader.GetInstance().GetGraphics(GraphicsPathSupervisor.GetInstance().GetPathGameStartInfo());
            }
            if (commandSelectNumber == 1)
            {
                dataSelectInfoSprite_.sprite = ResourcesGraphicsLoader.GetInstance().GetGraphics(GraphicsPathSupervisor.GetInstance().GetPathGameContinueInfo());
            }

            //SE
            inputSoundProvider_.UpSelect();
        }
        else if (sceneMgr.inputProvider_.UpSelect())
        {
            //カーソルが動かせたら
            if (commandParts_.CommandSelectUp(new Vector3(0, 1.9f, 0)))
            {
                //説明の画像
                dataSelectInfoSprite_.sprite = ResourcesGraphicsLoader.GetInstance().GetGraphics(GraphicsPathSupervisor.GetInstance().GetPathGameStartInfo());

                //SE
                inputSoundProvider_.UpSelect();
            }
        }
        else if (sceneMgr.inputProvider_.DownSelect())
        {
            //カーソルが動かせたら
            if (commandParts_.CommandSelectDown(new Vector3(0, -1.9f, 0)))
            {
                //説明の画像
                dataSelectInfoSprite_.sprite = ResourcesGraphicsLoader.GetInstance().GetGraphics(GraphicsPathSupervisor.GetInstance().GetPathGameContinueInfo());

                //SE
                inputSoundProvider_.DownSelect();
            }
        }
        else if (sceneMgr.inputProvider_.SelectEnter() ||
                 commandParts_.MouseLeftButtonTriggerActive())
        {
            //データの初期化
            PlayerTrainerData.ReleaseInstance();
            EnemyTrainerData.ReleaseInstance();

            if (commandParts_.SelectNumber() == 0)
            {
                Debug.Log("はじめから");

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

                //SE
                inputSoundProvider_.SelectEnter();

                //ウェイト
                eventMgr.EventWaitSet(sceneMgr.GetEventWaitTime());

                //フェードアウト
                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.Map, SceneChangeMode.Change);
            }
            else if (commandParts_.SelectNumber() == 1)
            {
                Debug.Log("つづきから");

                //データのロード
                if (SaveDataTrasfer.GetInstance().DataLoad())
                {
                    //操作の変更
                    sceneMgr.inputProvider_ = new InactiveInputProvider();

                    //SE
                    inputSoundProvider_.SelectEnter();

                    //ウェイト
                    eventMgr.EventWaitSet(sceneMgr.GetEventWaitTime());

                    //フェードアウト
                    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.Map, SceneChangeMode.Change);
                }
            }
        }
    }
Exemple #6
0
    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);
    }
Exemple #7
0
    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);
    }
    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);
    }
    public override MapSceneProcess Update(MapManager mapManager)
    {
        AllSceneManager   allSceneMgr = AllSceneManager.GetInstance();
        AllEventManager   allEventMgr = AllEventManager.GetInstance();
        PlayerTrainerData playerData  = PlayerTrainerData.GetInstance();

        AllEventManager.GetInstance().EventUpdate();

        //カーソルが動いていたら
        int commandSelectNumber = mapManager.GetTradeMonsterSelectCommandParts().CommandSelectForNumber(new Vector3(), new Vector3(0, 0.55f, 0));

        if (commandSelectNumber > -1)
        {
            //SE
            mapManager.GetInputSoundProvider().UpSelect();
        }
        else if (allSceneMgr.inputProvider_.UpSelect())
        {
            //選択肢が動かせたら
            if (mapManager.GetTradeMonsterSelectCommandParts().CommandSelectUp(new Vector3(0, 0.55f, 0)))
            {
                //SE
                mapManager.GetInputSoundProvider().UpSelect();
            }
        }
        else if (allSceneMgr.inputProvider_.DownSelect())
        {
            //選択肢が動かせたら
            if (mapManager.GetTradeMonsterSelectCommandParts().CommandSelectDown(new Vector3(0, -0.55f, 0)))
            {
                //SE
                mapManager.GetInputSoundProvider().DownSelect();
            }
        }
        else if (allSceneMgr.inputProvider_.RightSelect())
        {
        }
        else if (allSceneMgr.inputProvider_.LeftSelect())
        {
        }
        else if (allSceneMgr.inputProvider_.SelectEnter() ||
                 mapManager.GetTradeMonsterSelectCommandParts().MouseLeftButtonTriggerActive())
        {
            //SE
            mapManager.GetInputSoundProvider().SelectEnter();

            if (mapManager.GetTradeMonsterSelectCommandParts().SelectNumber() != mapManager.GetTradeMonsterSelectCommandParts().GetCommandWindowTextsCount() - 1)
            {
                //追加するモンスターのデータ
                IMonsterData addMonster = EnemyTrainerData.GetInstance().GetMonsterDatas(mapManager.GetTradeMonsterSelectCommandParts().SelectNumber());

                //モンスターの取得
                PlayerTrainerData.GetInstance().MonsterAdd(addMonster);

                //イベントの実行
                mapManager.nowEventMoveMap_.GetEventSetFuncs()[5](mapManager.nowEventMoveMap_, mapManager);

                //ウェイト
                allEventMgr.EventWaitSet(allSceneMgr.GetEventWaitTime());

                //ノベル処理
                {
                    string context = addMonster.tribesData_.monsterName_ + "を受け取った!";
                    EventMoveMap.NovelEvent(mapManager.GetNovelWindowParts(), context);
                }
            }

            //エネミーのデータの初期化
            EnemyTrainerData.ReleaseInstance();

            //選択肢の初期化
            mapManager.GetTradeMonsterSelectCommandParts().SelectReset(new Vector3(-0.71f, 0.85f, -4));

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

            //ウェイト
            allEventMgr.EventWaitSet(allSceneMgr.GetEventWaitTime());

            //イベントの実行
            mapManager.nowEventMoveMap_.GetEventSetFuncs()[6](mapManager.nowEventMoveMap_, mapManager);

            return(MapSceneProcess.EventExecute);
        }
        else if (allSceneMgr.inputProvider_.SelectBack())
        {
        }
        else if (allSceneMgr.inputProvider_.SelectNovelWindowActive())
        {
        }
        else if (allSceneMgr.inputProvider_.SelectMenu())
        {
        }

        return(mapManager.GetProcessProvider().state_);
    }
Exemple #10
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();
    }
    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()));
    }