Skip to content
This repository was archived by the owner on Feb 16, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -924,7 +925,7 @@ public class Enemy
{
public ReactiveProperty<long> CurrentHp { get; private set; }

public ReactiveProperty<bool> IsDead { get; private set; }
public IReadOnlyReactiveProperty<bool> IsDead { get; private set; }

public Enemy(int initialHp)
{
Expand Down