示例#1
0
 public static void Install()
 {
     if (_instance == null)
     {
         _instance = new GameObject("AwaiterCoroutineer").AddComponent <AwaiterCoroutineer>();
     }
 }
示例#2
0
        private void Awake()
        {
            if (_instance == null)
            {
                _instance = this;
            }

            DontDestroyOnLoad(_instance);
            SynchronizationContext = SynchronizationContext.Current;
        }