//現在表示中のシーンから、当てはまるタブ要素を取得する
    BarElement GetCurrentSceneElement()
    {
        //現在表示中のシーンのリスト取得
        List <Scene> currentScenes = Enumerable.Range(0, SceneManager.sceneCount - 1).Select(count => SceneManager.GetSceneAt(count)).ToList();

        foreach (BarElement element in BarElementList)
        {
            foreach (string currentSceneName in currentScenes.Select(scene => scene.name))
            {
                if (element.allSceneElement.Select(scene => SceneTransitionManager.GetSceneName(scene)).Contains(currentSceneName))
                {
                    return(element);
                }
            }
        }
        return(null);
    }