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

回答編集履歴

2

更新

2018/11/19 01:44

投稿

Hawn
Hawn

スコア1222

answer CHANGED
@@ -2,4 +2,4 @@
2
2
 
3
3
  `ChangeCoroutine(UnityAction=>{cube.transform.position = new Vector3(x, cube.transform.position.y, cube.transform.position.z);`部分の`x`が認識出来ていません。
4
4
 
5
- `UnityAction`と書かれている部分はfloatで返ってきているのでここは`UnityAction`という名前ではなく`x`とした方が良いです。
5
+ ここの`UnityAction`と書かれている部分はfloatで返って変数なので`UnityAction`という名前ではなく`x`とした方が良いです。

1

更新

2018/11/19 01:44

投稿

Hawn
Hawn

スコア1222

answer CHANGED
@@ -1,3 +1,5 @@
1
+ > error CS0103: The name `x' does not exist in the current context
2
+
1
3
  `ChangeCoroutine(UnityAction=>{cube.transform.position = new Vector3(x, cube.transform.position.y, cube.transform.position.z);`部分の`x`が認識出来ていません。
2
4
 
3
5
  `UnityAction`と書かれている部分はfloatで返ってきているのでここは`UnityAction`という名前ではなく`x`とした方が良いです。