コード例 #1
0
 public bool IsDepth()
 {
     return(data.GetLife() <= 0);
 }
コード例 #2
0
ファイル: BloodBar.cs プロジェクト: allanolivei/LudumDare40
 private void Update()
 {
     bar.localScale = new Vector3(1.0f * Mathf.Max(0, (data.GetLife() / data.initialLife)), 1, 1);
 }