private void UpdateHealthBar()
 {
     // On all changes of actual value of some progress
     // you need to send this changes to appropriate progress bar
     healthUpdateData.CurrentValue = currentHealth;
     HealthExampleTreeProgressBar.UpdateProgress(healthUpdateData);
 }
    public void InitializeHealthBar()
    {
        currentHealth = maxHealth;

        // All of this properties also have explanations in IProgressBar.cs
        // so if you want you can go to realization and study the work of progress bars deeper
        // to initialize progress you simply need to set up InitialData of HealthExampleTreeProgressBar
        // and send it using InitializeProgress event

        healthInitData.MinValue     = 0;
        healthInitData.MaxValue     = maxHealth;
        healthInitData.CurrentValue = maxHealth;

        HealthExampleTreeProgressBar.InitializeProgress(healthInitData);
    }