質問編集履歴

1

deataTime -> deltaTime

2019/11/15 04:30

投稿

katuobushi_iron
katuobushi_iron

スコア5

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.deataTime, 0);}
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