mirror of
https://github.com/ConjureETS/DeathBook.git
synced 2026-03-24 04:20:58 +00:00
- Fixed the observer not subscribing to the observable
This commit is contained in:
parent
91739e47a0
commit
d573ece233
@ -16,6 +16,13 @@ public class PersonDetailsPanel : MonoBehaviour, IObserver
|
||||
|
||||
public void SetModel(Person model)
|
||||
{
|
||||
if (_model != null)
|
||||
{
|
||||
_model.UnSubscribe(this);
|
||||
}
|
||||
|
||||
_model.Subscribe(this);
|
||||
|
||||
_model = model;
|
||||
UpdateInfo();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user