From 87a9732a9b1706dd5bbbd90a52bf83c54a7c8345 Mon Sep 17 00:00:00 2001 From: wodndb Date: Tue, 12 Oct 2021 14:49:41 +0900 Subject: [PATCH] Fix example source code of Model-View-(Reactive)Presenter Pattern in README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5cfd37ccd..5273c64cd 100644 --- a/README.md +++ b/README.md @@ -899,6 +899,7 @@ public class ReactivePresenter : MonoBehaviour // Presenter is aware of its View (binded in the inspector) public Button MyButton; public Toggle MyToggle; + public Text MyText; // State-Change-Events from Model by ReactiveProperty Enemy enemy = new Enemy(1000); @@ -924,7 +925,7 @@ public class Enemy { public ReactiveProperty CurrentHp { get; private set; } - public ReactiveProperty IsDead { get; private set; } + public IReadOnlyReactiveProperty IsDead { get; private set; } public Enemy(int initialHp) {