O meu código não está funcionando o que está errado
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MoverJogador : MonoBehaviour {
// Start is called before the first frame update
void Start() {
}
public class ControlaJogador : MonoBehaviour
{
// Update is called once per frame
void Update()
{
float eixoX = Input.GetAxis("Horizontal");
float eixoZ = Input.GetAxis("Vertical");
Vector3 direcao = new Vector3(eixoX, 0, eixoZ);
transform.Translate(direcao);
}
}