public HumanHealthBar(Human human) { this.human = human; AddChild(bg = new FSprite("Arena/HumanHealthBar_BG")); AddChild(border = new FSprite("Arena/HumanHealthBar_Border")); AddChild(inner = new FWipeSprite("Arena/HumanHealthBar_Inner")); bg.color = human.player.player.color.color * new Color(0.2f,0.2f,0.2f,1f); inner.color = human.player.player.color.color; ListenForUpdate(Update); SetPercent(1.0f); }
public HumanHealthBar(Human human) { this.human = human; AddChild(bg = new FSprite("Arena/HumanHealthBar_BG")); AddChild(border = new FSprite("Arena/HumanHealthBar_Border")); AddChild(inner = new FWipeSprite("Arena/HumanHealthBar_Inner")); bg.color = human.player.player.color.color * new Color(0.2f, 0.2f, 0.2f, 1f); inner.color = human.player.player.color.color; ListenForUpdate(Update); SetPercent(1.0f); }