Plugin: health bar behave like DNF
-
Drop Prefab[BossHealthBar] to scene
-
You are free to change the layout on your style.
-
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);