コード例 #1
0
ファイル: Manticore.cs プロジェクト: Hiroki-kt/grand-energy
 // Update is called once per frame
 void Update()
 {
     if (Hp <= 0)
     {
         Debug.Log("死亡しました");
         hpStatusUI.SetDisable();
     }
 }
コード例 #2
0
    public void SetHP(int hp)
    {
        this.hp = hp;

        //HP表示用UIのアップデート
        hPStatusUI.SetDisable();


        //HP表示ようUIを非表示にする
        if (hp <= 0)
        {
            hPStatusUI.SetDisable();
        }
    }