Skip to content

Instantly share code, notes, and snippets.

@TORISOUP
Created November 24, 2020 10:43
Show Gist options
  • Save TORISOUP/0c4344a8442801c43bc5c82e11a61e65 to your computer and use it in GitHub Desktop.
Save TORISOUP/0c4344a8442801c43bc5c82e11a61e65 to your computer and use it in GitHub Desktop.
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