質問するログイン新規登録

質問編集履歴

1

コードの訂正

2021/04/03 12:25

投稿

poporara
poporara

スコア1

title CHANGED
File without changes
body CHANGED
@@ -11,8 +11,7 @@
11
11
 
12
12
  ### 該当のソースコード
13
13
 
14
- ```ここに言語名を入力
14
+ ```
15
- ソースコード
16
15
  if (Input.GetKey(KeyCode.LeftArrow)) {
17
16
  if (this.transform.position.x >-4)
18
17
  this.transform.position += Vector3.left* speed * Time.deltaTime;
@@ -20,7 +19,8 @@
20
19
  if (Input.GetKey(KeyCode.RightArrow)){
21
20
  if(this.transform.position.x <4)
22
21
  this.transform.position += Vector3.right* speed * Time.deltaTime;
23
- }}
22
+ }
23
+ ```
24
24
 
25
25
  ### 試したこと
26
26