29 lines
609 B
C#
Executable File
29 lines
609 B
C#
Executable File
using UnityEngine;
|
|
|
|
|
|
public class PlayerMovement : MonoBehaviour
|
|
{
|
|
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
|
void Start()
|
|
{
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void FixedUpdate()
|
|
{
|
|
if (Input.GetKey("w")) {
|
|
Debug.Log("Forward");
|
|
}
|
|
if (Input.GetKey("s")) {
|
|
Debug.Log("Backward");
|
|
}
|
|
if (Input.GetKey("a")) { // these work trust me
|
|
Debug.Log("Left");
|
|
}
|
|
if (Input.GetKey("d")) {
|
|
Debug.Log("Right");
|
|
}
|
|
}
|
|
}
|