chore: initial commit
This commit is contained in:
31
Assets/Scripts/Enemies/EnemyStatsSO.cs
Normal file
31
Assets/Scripts/Enemies/EnemyStatsSO.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user