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);
}