kvp 변수명 변경
This commit is contained in:
parent
7adcccf976
commit
51c5cace09
@ -50,9 +50,9 @@ public async Task Init()
|
||||
var activeScene = UnityEngine.SceneManagement.SceneManager.GetActiveScene();
|
||||
var activeScenePath = activeScene.path;
|
||||
#if UNITY_EDITOR
|
||||
foreach (var kvp in GameFlowManager.Instance.GameFlowSceneMappingSo.AssetMapping)
|
||||
foreach (var sceneAssetPair in GameFlowManager.Instance.GameFlowSceneMappingSo.AssetMapping)
|
||||
{
|
||||
var asset = kvp.Value.editorAsset;
|
||||
var asset = sceneAssetPair.Value.editorAsset;
|
||||
if (asset == null) continue;
|
||||
|
||||
string assetPath = AssetDatabase.GetAssetPath(asset);
|
||||
@ -60,7 +60,7 @@ public async Task Init()
|
||||
|
||||
if (assetPath == activeScenePath)
|
||||
{
|
||||
_currentSceneType = kvp.Key;
|
||||
_currentSceneType = sceneAssetPair.Key;
|
||||
_loadedSceneDatas.Add(_currentSceneType, new SceneData(activeScene, null));
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user