Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 580 Bytes

File metadata and controls

32 lines (23 loc) · 580 Bytes

EnemyData ScriptableObject

EnemyData is a ScriptableObject used to define enemy attributes and behaviors.

Properties

  • Enemy Name
  • Health
  • Damage
  • Movement Speed
  • Attack Range
  • Experience Reward

Benefits

  • Easy balancing through the Inspector
  • Reusable across multiple enemy prefabs
  • Keeps enemy data separate from logic
  • Reduces hardcoded values

Common Use Cases

  • RPG Games
  • Action Games
  • Survival Games
  • Platformers

Best Practices

  • Store only data.
  • Keep AI logic in MonoBehaviour scripts.
  • Use ScriptableObjects for different enemy types.