Shield Spawner

The Shield Spawner is included in the Interactive Demo and is connected to a list of shield prefabs. Each time you spawn a shield, a random prefab from this list is selected. These prefabs are configured with two different ShieldBehaviorConfig files, providing variety in both visuals and behavior.

Duplicate the existing ShieldBehaviorConfig assets and adjust their animation curves to quickly create your own shield variants for testing.

The spawner comes with a defined spawn point where shields appear. You can also set the initial health of the spawned shield.

Health can be set programmatically by calling ShieldController.SetHealth after instantiation. This allows you to scale shield durability depending on enemy or player strength.

The provided script demonstrates how to spawn shields and configure their health. You can easily adapt or extend this function to integrate it into your own gameplay setup.

Last updated