32 lines
838 B
C#
32 lines
838 B
C#
using UnityEngine;
|
||
|
||
namespace BaseGames.Enemies
|
||
{
|
||
/// <summary>
|
||
/// 敌人属性配置 SO(架构 07_EnemyModule §2)。
|
||
/// </summary>
|
||
[CreateAssetMenu(menuName = "Enemies/EnemyStats")]
|
||
public class EnemyStatsSO : ScriptableObject
|
||
{
|
||
[Header("生命")]
|
||
public int MaxHP = 50;
|
||
|
||
[Header("防御")]
|
||
public int Defense = 0;
|
||
|
||
[Header("移动")]
|
||
public float WalkSpeed = 2f;
|
||
public float RunSpeed = 4f;
|
||
|
||
[Header("战斗")]
|
||
public int AttackDamage = 10;
|
||
public float AttackRange = 1.5f;
|
||
public float AttackCooldown = 1f;
|
||
public float DetectRange = 6f;
|
||
|
||
[Header("击退(作为来源时)")]
|
||
public float KnockbackForce = 5f;
|
||
public float HitStunDuration = 0.3f;
|
||
}
|
||
}
|