PlayFacing() ext

This commit is contained in:
Chris Forbes
2009-12-06 20:14:50 +13:00
parent 6594a169d8
commit 5b970c499b
5 changed files with 14 additions and 13 deletions

View File

@@ -16,11 +16,7 @@ namespace OpenRa.Game.Traits
void PlayFacingAnim(Actor self)
{
var unit = self.traits.Get<Unit>();
anim.PlayFetchIndex("idle",
() => Util.QuantizeFacing(
unit.Facing,
anim.CurrentSequence.Length ));
anim.PlayFacing("idle", () => unit.Facing);
}
public void PlayCustomAnimation(Actor self, string newAnim, Action after)