/** * <summary> * Set health * </summary> * * <param name="health">Health</param> * * <returns> * void * </returns> */ public void SetHealth(float health) { this.health = health; UnitUI unitUI = this.UI.GetComponent <UnitUI>(); unitUI.SetHealth(health, this.maxHealth); }