public void Dispose() { if (Instance == this) { Instance = null; } _promise.Resolve(); }
public DelayedReact() { if (Instance == null) { Instance = this; } else { Debug.LogError("Another instance of DelayerReact exists"); } _promise = new Promise(); }