using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerMove : MonoBehaviour
{
public float player_speed = 1f;
void Start()
{
}
void Update()
{
if (Input.GetKey(KeyCode.W))
{
transform.Translate(Vector3.forward * player_speed * Time.deltaTime);
}
if (Input.GetKey(KeyCode.S))
{
transform.Translate(Vector3.back * player_speed * Time.deltaTime);
}
if (Input.GetKey(KeyCode.A))
{
transform.Translate(Vector3.left * player_speed * Time.deltaTime);
}
if (Input.GetKey(KeyCode.D))
{
transform.Translate(Vector3.right * player_speed * Time.deltaTime);
}
}
}