EnemyHealth

  • maxHealth: Initial & Maximum Health

  • maxShield: Initial & Maximum Shield

  • healthSlider: UI Element to display health.

  • shieldSlider: UI Elements to display shield.

  • deathVFX: Visual effect instantiated on death.

  • flashesOnDamage: Set to true if you want the player to blink/flash on hit.

  • flashDuration: How long the effect is played.

  • flashSpeed: How fast the effect is played.

  • graphics: Array that contains all the Renderers that will blink on damage. These must have the Blink material assigned. For 2D Games, assign sprite renderers. For 2.5D games, assign MeshRenderers.

Learn more about Adding Enemies in Adding Enemies.

Last updated