using System.Collections;
using UnityEngine;
using UnityEngine.UI;
namespace EmeraldAI.Utility
{
public class EmeraldHealthBar : MonoBehaviour
{
#region Health Bar Variables
Camera m_Camera;
Canvas canvas;
Image HealthBar;
Image HealthBarDamage;
CanvasGroup CG;
Text AINameUI;
Text AILevelUI;
Coroutine C;
EmeraldSystem EmeraldComponent;
EmeraldUI EmeraldUI;
EmeraldHealth EmeraldHealth;
Coroutine CoroutineTransitionDamage;
#endregion
void Start()
{
InitializeHealthBar();
}
///
/// Initialize the health bar.
///
void InitializeHealthBar ()
{
//Since the transform order of the health bar is always the same, get the parent's parent to get all need Emerald AI Components.
canvas = GetComponent