enemy spawner

This commit is contained in:
2025-10-26 14:17:31 +01:00
parent 20d3b46834
commit 40a62b5b5a
2102 changed files with 1255290 additions and 70 deletions

View File

@@ -0,0 +1,23 @@
using UnityEngine;
namespace Game.Scripts.Runtime.Data
{
[CreateAssetMenu(menuName = "Game/Spawning/Enemy Definition", fileName = "EnemyDefinition")]
public class EnemyDefinition : ScriptableObject
{
[Tooltip("Unique identifier leveraged by pooling and save systems. Defaults to asset name when left blank.")]
[SerializeField] private string id;
[Tooltip("Prefab that represents this enemy. Should include required behaviours and visuals.")]
public GameObject Prefab;
public bool IsBoss;
public float BaseHP = 10f;
public float MoveSpeed = 3.5f;
public float Damage = 1f;
public Vector3 PrefabPivotOffset = Vector3.zero;
public string[] Tags = System.Array.Empty<string>();
public string Id => string.IsNullOrEmpty(id) ? name : id;
}
}