Example #1
0
    /// <summary>
    /// Closes all the managers for the LockPRPSPopup and the ether balance observer.
    /// </summary>
    protected override void OnDestroy()
    {
        base.OnDestroy();

        Gas.Stop();
        Amount.Stop();
        Time.Stop();

        etherBalanceObserver.UnsubscribeObservable(this);
        buttonClickObserver.UnsubscribeObservable(this);
    }
 /// <summary>
 /// Removes the observable and updater for updating the balances of the active asset.
 /// </summary>
 public void Destroy()
 {
     updateManager.RemoveUpdater(this);
     etherBalanceObserver.UnsubscribeObservable(this);
 }