Create StatusUI
This commit is contained in:
parent
dd9b360bfc
commit
03ca23d484
11 changed files with 484 additions and 17 deletions
|
|
@ -13,6 +13,7 @@ public class HeroInfoUI : MonoBehaviour
|
|||
public Text hpText;
|
||||
public GameObject blockGroup;
|
||||
public Text blockText;
|
||||
public StatusUI statusUI;
|
||||
|
||||
private int renderedHP = -1;
|
||||
private int renderedMaxHP = -1;
|
||||
|
|
@ -26,6 +27,8 @@ public class HeroInfoUI : MonoBehaviour
|
|||
public void Init(GameObject sprite, BattleParticipant battleParticipant) {
|
||||
this.target = sprite;
|
||||
this.battleParticipant = battleParticipant;
|
||||
|
||||
this.statusUI.Init(battleParticipant);
|
||||
}
|
||||
|
||||
// Start is called before the first frame update
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue