Whenever my bullet is instantiated it always get instantiated, then flies right if I turn my ship from facing forwards to facing left it flies up. Here is the code. Thanks!
using UnityEngine;
using System.Collections;
public class MoveForward : MonoBehaviour {
public float maxSpeed = 5f;
// Update is called once per frame
void Update () {
Vector3 pos = transform.position;
Vector3 velocity = new Vector3(0, maxSpeed * Time.deltaTime, 0);
pos += transform.rotation * velocity;
transform.position = pos;
}
}