/// <summary> /// Called on destroy /// attaches this method to Obervable /// </summary> protected void OnDisable() { FoolObservable.Detach(this); }
/// <summary> /// Called on awake /// attaches this method to Obervable /// </summary> protected void OnEnable() { FoolObservable.Attach(this); }