Ejemplo n.º 1
0
        public BigIntWithUnit DecreaseLife(BigIntWithUnit damage)
        {
            var updatedDamage = damage * _player.GetModifier(Player.AdSelector.Damage);
            var dmg           = Data.DecreaseLife(updatedDamage);
            var height        = new Vector3(-5f, 12f, 0f);

            _player.UIManager.CreateFloatingText(updatedDamage.ToString(), transform, transform.position + height, true);
            return(dmg);
        }