Witam serdecznie, oto kod ktory mam napisany, problem jest w tym ze W oraz S nie dzialaja tak jak trzeba to znaczy nie prowadza w gore i w dol
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Poruszanie : MonoBehaviour
{
public int speed = 36;
void Update()
{
if (Input.GetKey("w"))
transform.Translate(0, 0, speed * Time.deltaTime);
if (Input.GetKey("s"))
transform.Translate(0, 0, -speed * Time.deltaTime);
if (Input.GetKey("a"))
transform.Translate(-speed * Time.deltaTime, 0, 0);
if (Input.GetKey("d"))
transform.Translate(speed * Time.deltaTime, 0, 0);
}
}