im writing the code from a basic tutorial and get this error on player movement
(12,41): error CS1002: ; expected
here is my code
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class playermovement : MonoBehaviour {
public float movementspeed;
public rigidbody2d rb;
float mx;
private void update() {
mx = input.getaxis(“horizontal”)
}
private void fixedupdate(){
vector2 movement = new vector2(mx * movementspeed, rb.velocity.y);
rb.velocity = movement;
}
}