Prerequisites:
Install the package in one of the following ways:
Open manifest.json
and add the following dependency to your project:
"com.nicloay.ecsdamagebubbles": "https://github.com/nicloay/ecs-damage-bubbles.git?path=/Assets/EcsDamageBubbles"
Alternatively, install from the Git URL in the Package Manager. Copy the following link:
https://github.com/nicloay/ecs-damage-bubbles.git?path=/Assets/EcsDamageBubbles
Then, paste it into the Package Manager's "Add package from git URL" field.
Import the demo sample from the Package Manager window.
To set up damage bubbles in your existing scene, follow these steps:
DamageBubblesConfig
prefab in the package and drag and drop it into your Entities scene.var entity = EntityManager.CreateEntity()
EntityManager.AddComponent(entity, new DamageRequest
{
Value = _rnd.NextInt(1, 999999),
ColorId = colorId
});