public Update ( |
||
gameTime | ||
direction | Vector2 | |
Résultat | void |
public override void Update(GameTime gameTime, Vector2 direction)
{
pos = pos + (direction * speed);
fadeTime--;
hitBox = new Rectangle((int)(pos.X - (texture.Width / 2)), (int)(pos.Y - (texture.Height / 2)), texture.Width, texture.Height);
}