Fixed soldier hitbox not following him correctly
This commit is contained in:
@@ -21,7 +21,7 @@ namespace DepthsBelow.Component
|
|||||||
this.Height = height;
|
this.Height = height;
|
||||||
this.Rectangle = new Rectangle(0, 0, width, height);
|
this.Rectangle = new Rectangle(0, 0, width, height);
|
||||||
}
|
}
|
||||||
public void Update(GameTime gameTime)
|
public override void Update(GameTime gameTime)
|
||||||
{
|
{
|
||||||
PixelTransform pt = this.Parent.GetComponent<PixelTransform>();
|
PixelTransform pt = this.Parent.GetComponent<PixelTransform>();
|
||||||
this.Rectangle.X = (int)pt.X;
|
this.Rectangle.X = (int)pt.X;
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ namespace DepthsBelow.Component
|
|||||||
|
|
||||||
public virtual void Update(GameTime gameTime)
|
public virtual void Update(GameTime gameTime)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user