This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine.SceneManagement; | |
using Cysharp.Threading.Tasks; | |
using UnityEngine; | |
/// <summary> | |
/// シーンをロードする | |
/// ロード先シーンのコンポーネントが取得できるのでパラメーターを渡せる | |
/// 取得できるコンポーネントはロード先シーンのルート階層のGameObjectに設置されているもの | |
/// 指定コンポーネントが取得できるのはAwakeの後、Startの前のタイミング | |
/// </summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
/// <summary> | |
/// サービスロケーター | |
/// </summary> | |
public static class Locator | |
{ | |
/// <summary> | |
/// 単一インスタンス用ディクショナリー |