o shit the player moves now

This commit is contained in:
2024-10-19 12:23:31 -07:00
parent 651a58adf4
commit 91d4d134c3
14 changed files with 410 additions and 137 deletions

View File

@@ -2,6 +2,7 @@ using UnityEngine;
public class Teo : MonoBehaviour
{
public float moveSpeed;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
@@ -11,6 +12,10 @@ public class Teo : MonoBehaviour
// Update is called once per frame
void Update()
{
}
transform.Translate(
Input.GetAxis("Horizontal")*moveSpeed*Time.deltaTime,
Input.GetAxis("Vertical")*moveSpeed*Time.deltaTime,
0
);
}
}