質問編集履歴
1
deataTime -> deltaTime
test
CHANGED
File without changes
|
test
CHANGED
@@ -30,7 +30,7 @@
|
|
30
30
|
|
31
31
|
if (Input.GetKey(KeyCode.W)) {transform.position = new Vector3 (transform.position.x, transform.position.y + speeds * Time.deltaTime, 0);}
|
32
32
|
|
33
|
-
if (Input.GetKey(KeyCode.S)) {transform.position = new Vector3 (transform.position.x, transform.position.y - speeds * Time.de
|
33
|
+
if (Input.GetKey(KeyCode.S)) {transform.position = new Vector3 (transform.position.x, transform.position.y - speeds * Time.deltaTime, 0);}
|
34
34
|
|
35
35
|
if (Input.GetKey(KeyCode.D)) {transform.position = new Vector3 (transform.position.x + speeds * Time.deltaTime, transform.position.y, 0);}
|
36
36
|
|