o shit the player moves now
This commit is contained in:
@@ -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
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user