コード例 #1
0
 public void Dispose()
 {
     if (Instance == this)
     {
         Instance = null;
     }
     _promise.Resolve();
 }
コード例 #2
0
        public DelayedReact()
        {
            if (Instance == null)
            {
                Instance = this;
            }
            else
            {
                Debug.LogError("Another instance of DelayerReact exists");
            }

            _promise = new Promise();
        }