Tamamdir zaten bir sorun olursa buraya yazacağım teşekkürler.
Hocam bu kodda ne sorun var boyle bir hata cikiyor:
Eki Görüntüle 184934
Kod bu:
Using unityengine;
Public class cube: Monobehaviour.
{
Private rigidbody RB;
Public float Speed;
// Start is called once before the first execution of Update after the monobehaviour is created.
Void Start()
{
}
// Update is called once per frame.
Void Update()
{
Var direction = Vector3.Zero;
İf (ınput. Getkey(keycode. W))
{
Direction += Vector3.forward;
}
İf (ınput. Getkey(keycode. S))
{
Direction += Vector3.back;
}
İf (ınput. Getkey(keycode. A))
{
Direction += Vector3.left;
}
İf (ınput. Getkey(keycode. D))
{
Direction += Vector3.right;
}
RB. Linearvelocity = direction * Speed;
}
}