Problem with shooting an object in 2D

Hi there,

My problem is that when I spawn an object and the shooting script on it is called, which should accelerate the object itself the moment it spawns, nothing happens.
Here is the shooting script attached to the bullet (I want the bullet to fly in the direction of the player):

public float speed = 1f;
public Transform player;
private Vector2 dir;

// Use this for initialization
void Start () 
{
	dir = player.transform.position - gameObject.transform.position;
	gameObject.transform.Translate (dir.normalized * speed * Time.deltaTime);
}

Just change “void Start” to “void Update”
The start method is only called once , that’s why your gameobject isn’t moving however Update is called every frame