public static void Install() { if (_instance == null) { _instance = new GameObject("AwaiterCoroutineer").AddComponent <AwaiterCoroutineer>(); } }
private void Awake() { if (_instance == null) { _instance = this; } DontDestroyOnLoad(_instance); SynchronizationContext = SynchronizationContext.Current; }