Merhaba Unity'ye yeni başladım ve internetten bir hareket kodu yazmaya çalışıyordum ama resimdeki hatayı aldım. bunun çözümü nedir acaba?
kodlar :
kodlar :
Kod:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class movement : MonoBehaviour
{
public float speed = 10f;
void Start()
{
}
void Update()
{
float xHorizontal = Input.GetAxis("Horizontal");
float zVertical = Input.GetAxis("Vertical");
Vector3 movesystem = new Vector3(xHorizontal, 0.0f, zVertical);
transform.position += movesystem * speed * Time.deltatime;
}
}