{"conversations": [{"from": "user", "value": "Escriu-me un codi c# per a Unity en el qual el jugador s'ha de moure amb \"AWSD\" en un joc 2D"}, {"from": "assistant", "value": "El seg\u00fcent script pot ser d' utilitat Mou objecte sense usar Rigidbody: public float speed = 100; public Transform obj; public void Update () { float h = Input. GetAxis (\"Horitzontal\"); float v = Input.GetAxis (\"Vertical\"); Vector3 tempVect = new Vector3( h, v, 0); tempVect = tempVect.normalized * Time.deltaTime; obj.transform. position += tempVect; \u00ab Input. GetAxintal \u00bb); float speed = 100; public Rigidbody2D rb; public void Update () { float h = Input. GetAxis(\" Horitzontal \u00bb); float v = sputbibilt (l) Vista)"}]}