Facing -> new trait ("Unit")

This commit is contained in:
Bob
2009-11-25 18:11:44 +13:00
parent 7ccb2aa9ee
commit 2aea110497
21 changed files with 120 additions and 87 deletions

View File

@@ -80,7 +80,7 @@ namespace OpenRa.Game.Traits
anim.Tick();
var d = (desiredLocation - location);
facing = /*Util.GetFacing(d, facing); */ self.traits.Get<Mobile>().facing;
facing = /*Util.GetFacing(d, facing); */ self.traits.Get<Unit>().Facing;
if (float2.WithinEpsilon(d, float2.Zero, .1f))
PlaySequence("stand", true);