Created
November 24, 2020 10:43
-
-
Save TORISOUP/0c4344a8442801c43bc5c82e11a61e65 to your computer and use it in GitHub Desktop.
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
private class Hoge : IDisposable | |
{ | |
private readonly CompositeDisposable _compositeDisposable = new CompositeDisposable(); | |
public void Initialize() | |
{ | |
Observable.EveryUpdate() | |
.Subscribe() | |
.AddTo(_compositeDisposable); | |
} | |
public void Dispose() | |
{ | |
_compositeDisposable.Dispose(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment