the object i wanted to make is a missile. But instead of moving left it moves upwards. I cant find out why exactly.
public int damage = 1;
public float speed;
public float maxSpeed = 40;
public float acceleration = 2;
private void Update()
{
if (speed < maxSpeed)
{
speed = speed - acceleration;
}
transform.Translate(Vector2.left * Time.deltaTime * speed);
}