Weird flipping gameobject

I’ve got problem with flipping an enemy prefab. This piece of code is resposible for a flip:

	void Flip() {
		Vector2 e = myTransform.localScale;
		e.x *= -1;
		myTransform.localScale = e;
	}

This is how it looks:

Why is that happening to the prefab?

I figured it out. The reason was that I used Vector2 instead of Vector3. Anyway, thank you for help! :slight_smile: