Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 745 Bytes

README.md

File metadata and controls

25 lines (19 loc) · 745 Bytes

HealthBar_HUD_Unity

Plugin: health bar behave like DNF

Demo Effect

How to use

  1. Drop Prefab[BossHealthBar] to scene

  2. You are free to change the layout on your style.

  3. Scriptable Object Change the color of health bar over here Demo Effect

  4. Set up

var healthBarView = this.GetComponent<HealthBarView>();
healthBarView.SetUp(target_id, currentHealth: 100, totalHealth: 100, blockNum: 5);

//Update healthbar
//Deduct 10 hp 
healthBarView.UpdateHPValue(-10);

//Resume 5 hp 
healthBarView.UpdateHPValue(5);