movement = Input.GetAxis ("Horizontal");
if (movement > 0f) {
rigidBody.velocity = new Vector2 (movement * speed, rigidBody.velocity.y);
transform.localScale = new Vector2(0.1483552f,0.1483552f);
}
else if (movement < 0f) {
rigidBody.velocity = new Vector2 (movement * speed, rigidBody.velocity.y);
transform.localScale = new Vector2(-0.1483552f,0.1483552f);
}
else {
rigidBody.velocity = new Vector2 (0,rigidBody.velocity.y);
}