J'ai regardé quelque sujet et je suis tombé sur quelqu'un qui parlait de Unity Learn.
J'ai donc suivi le début de ce cour, malheureusement, j'ai un problème avec un script.
Je ne comprend pas couramment l'anglais et donc je n'ai pas compris tout ce qu'il disait.
Je suis rendu à cette vidéo :
http://unity3d.com/learn/tutorials/proj ... the-player
Et c'est ce script là qui me pose problème :
Code : Tout sélectionner
using UnityEngine;
using System.Collections;
public class PlayerController : MonoBehaviour
{
public float speed;
void FixedUpdate ()
{
float moveHorizontal = Input.GetAxis("Horizontal");
float moveVertical = Input.GetAxis("Vertical");
Vector3 movement = new Vector3(moveHorizontal, 0.0f, moveVertical);
rigidbody.AddForce(movement * speed * Time.deltaTime);
}
}
"All compiler errors have to be fixed before you can enter playmode"
Merci d'avance