Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -13,6 +13,8 @@ namespace BaseGames.Enemies
|
||||
public AnimationClip Idle;
|
||||
public AnimationClip Walk;
|
||||
public AnimationClip Run;
|
||||
[Tooltip("转身动画(可选);配合 EnemyMovement._enableTurnAnimation 使用,留空则瞬时翻转")]
|
||||
public AnimationClip Turn;
|
||||
|
||||
[Header("战斗")]
|
||||
public AnimationClip Attack;
|
||||
@@ -41,6 +43,7 @@ namespace BaseGames.Enemies
|
||||
"Idle" => Idle,
|
||||
"Walk" => Walk,
|
||||
"Run" or "Chase" => Run,
|
||||
"Turn" => Turn,
|
||||
"Attack" or "Attack_Melee" => Attack,
|
||||
"Hurt" => Hurt,
|
||||
"Stagger" => Stagger,
|
||||
|
||||
Reference in New Issue
Block a user