Accueil Forums J’ai besoin d’aide Unity3D Besoin d'aide svp Répondre à : Besoin d'aide svp

#1604

Camille 36
Participant

La commande ne fonctionne toujours pas (je met la commande en entière):
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ContrôleDuPersonnage : MonoBehaviour {
public int speed = 5;
private Vector3 DirectionDeplacement = Vector3.zero;
private CharacterController Player;

// Use this for initialization
void Start () {
Player = GetComponent <CharacterController> ();
}

// Update is called once per frame
void Update () {
DirectionDeplacement.z = Input.GetAxisRaw (“Vertical”);
DirectionDeplacement.x = Input.GetAxisRaw (“Horizontal”);
DirectionDeplacement = transform.TransformDirection (DirectionDeplacement);
Player.Move(DirectionDeplacement*Time.deltatime*Speed)
}
}