Ejemplo n.º 1
0
        internal void BindHealthBar(HealthBarManager manager)
        {
            var healthBar = manager.GetHealthBarForTarget(transform);

            _hp.OnChange += healthBar.ChangeHealth;
            _hp.OnNoHP   += () => manager.RemoveHealthBar(transform);
            _hp.OnNoHP   += SelfDestroy;
        }