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

        //依存性注入
        inputSoundProvider_.state_ = SaveDataSceneInputSoundState.Normal;

        //初期化
        dataSelectInfoSprite_.sprite = ResourcesGraphicsLoader.GetInstance().GetGraphics(GraphicsPathSupervisor.GetInstance().GetPathGameStartInfo());

        commandParts_.SelectReset(new Vector3(3.32f, 0.81f, -4));

        //フェードイン
        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.EventFinishSet();
    }
Beispiel #2
0
    public void SceneStart()
    {
        AllEventManager eventMgr = AllEventManager.GetInstance();
        AllSceneManager sceneMgr = AllSceneManager.GetInstance();

        //依存性注入
        processProvider_           = startProcessStateProvider_;
        processProvider_.state_    = BugMenuSceneProcess.SkillSelect;
        inputSoundProvider_.state_ = BugMenuSceneInputSoundState.Normal;

        //文字の初期化
        for (int i = 0; i < commandParts_.GetCommandWindowTextsCount(); ++i)
        {
            commandParts_.CommandWindowChoiceTextChange(i, "ーー");
        }

        //アップカーソルの初期化
        upCursor_.gameObject.SetActive(false);

        //選択肢の初期化
        commandParts_.SelectReset(new Vector3(-7.7f, 1.23f, -1));
        commandParts_.commandWindowChoicesColliderInactive();

        //初期化
        processProvider_.init(this);

        //フェードイン
        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.InputProviderChangeEventSet(new KeyBoardNormalTriggerInputProvider());
    }