(client) feat:添加临时动画组件,添加逃跑逻辑
This commit is contained in:
@ -30,7 +30,6 @@ namespace Entity
|
||||
foreach (var state in states)
|
||||
{
|
||||
bodyNodes.TryAdd(state, new Dictionary<Orientation, GameObject>());
|
||||
bodyAnimationNode.TryAdd(state, new Dictionary<Orientation, ITick[]>());
|
||||
}
|
||||
|
||||
var texture = itemResource.Icon;
|
||||
@ -49,9 +48,6 @@ namespace Entity
|
||||
bodyNodes[EntityState.Idle][Orientation.Down] = animatorObj;
|
||||
var animator = animatorObj.GetComponent<SpriteAnimator>();
|
||||
animator.SetSprites(texture.ToArray());
|
||||
ITick[] ticks = { animator };
|
||||
|
||||
bodyAnimationNode[EntityState.Idle][Orientation.Down] = ticks;
|
||||
}
|
||||
|
||||
SetBodyTexture(EntityState.Idle, Orientation.Down);
|
||||
|
Reference in New Issue
Block a user