public AGT_Pawn(string pawn_id, AGT_SpriteResource texture) { _position = new Vector3(0, 0, 0); _rotation = new Vector3(0, 0, 0); _scaling = new Vector3(1, 1, 1); _pawn_id = pawn_id; _sprite_id.Id = texture.TextureId; _collision_rect.Height = _texture_height = texture.Height; _collision_rect.Width = _texture_width = texture.Width; }
public void SetSpriteReference(AGT_SpriteResource texture) { _sprite_id.Id = texture.TextureId; _collision_rect.Height = _texture_height = texture.Height; _collision_rect.Width = _texture_width = texture.Width; }