質問編集履歴
1
wallのコードを書いていませんでした
test
CHANGED
File without changes
|
test
CHANGED
@@ -365,24 +365,23 @@
|
|
365
365
|
|
366
366
|
}
|
367
367
|
}
|
368
|
+
|
369
|
+
}
|
370
|
+
```
|
371
|
+
wall
|
372
|
+
|
373
|
+
```
|
374
|
+
using System.Collections;
|
375
|
+
using System.Collections.Generic;
|
368
|
-
|
376
|
+
using UnityEngine;
|
377
|
+
|
378
|
+
public class wall : MonoBehaviour
|
369
|
-
{
|
379
|
+
{
|
370
|
-
i
|
380
|
+
void hogehogeMessage() {
|
371
|
-
|
381
|
+
transform.position = new Vector3(0, 0, 0);
|
372
|
-
|
382
|
+
}
|
373
|
-
if (Input.GetKey ("down")) {
|
374
|
-
transform.position -= transform.forward * speed * Time.deltaTime;
|
375
|
-
|
383
|
+
}
|
376
|
-
if (Input.GetKey("right")) {
|
377
|
-
transform.position += transform.right * speed * Time.deltaTime;
|
378
|
-
}
|
379
|
-
if (Input.GetKey ("left")) {
|
380
|
-
transform.position -= transform.right * speed * Time.deltaTime;
|
381
|
-
}
|
382
|
-
}
|
383
|
-
}
|
384
|
-
```
|
384
|
+
```
|
385
|
-
|
386
385
|
### 試したこと
|
387
386
|
|
388
387
|
調べたりして実行したがうまくいかず、そもそもユニティ初心者なのであまり理解ができなかった、いろいろ試したが成果はえられず
|