Im making an enemy shoot fire balls in a 2D platformer it works fine but when my Y axis changes in any way it stops shooting them

using UnityEngine;
using System.Collections;

public class Fireballyum : MonoBehaviour {
public float distanceShot = 1.0f;
public float directionShot = 1.0f;
public float fireballSpeed = 1.0f;
public float xPos = -1.0f;
public float yPos = -10.5f;
Vector3 distanceAmount;
private Transform fireball;
// Use this for initialization
void OnCollisionEnter2D(Collision2D coll){
transform.position = new Vector2 (xPos, yPos);

	}

 void Start () {

}

// Update is called once per frame
  void Update () {
	distanceAmount.x = directionShot * fireballSpeed* Time.deltaTime;
	transform.Translate (distanceAmount);


}

}

i figured this out a long time ago I needed to change to fixed angle in the inspector window