コード例 #1
0
ファイル: HealthBarUniRx.cs プロジェクト: vikpek/unity-atoms
 void Awake()
 {
     _health.ObserveChange().Subscribe(health =>
     {
         GetComponent <Image>().fillAmount = 1.0f * health / _health.InitialValue;
     });
 }