private void Start() { if (m_Boss == null) { Debug.LogError("BossHealthBarDisplay doesn't have a boss reference!"); return; } m_HealthBar.gameObject.SetActive(false); m_DamageableObject = m_Boss.DamageableObject; m_OriginalSize = m_HealthBar.sizeDelta.Copy(); m_DamageableObject.HealEvent += OnHeal; m_DamageableObject.DamageEvent += OnDamage; m_DamageableObject.DeathEvent += OnDeath; m_Boss.EnableEvent += OnBossEnable; m_Boss.DisableEvent += OnBossDisable; }