.
This commit is contained in:
parent
76ea3dc995
commit
246ee42ca2
@ -14,8 +14,9 @@ public class PlayerController : MonoBehaviour
|
|||||||
|
|
||||||
void Update()
|
void Update()
|
||||||
{
|
{
|
||||||
// transform.position += new Vector3(0, 0, 1) * 0.01f;
|
h = Input.GetAxis("Horizontal");
|
||||||
// transform.position += Vector3.forward * 0.01f;
|
Debug.Log("h=" + h);
|
||||||
|
|
||||||
transform.Translate(Vector3.forward * 0.01f);
|
transform.Translate(Vector3.forward * 0.01f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user