質問編集履歴
2
hennkou
test
CHANGED
File without changes
|
test
CHANGED
@@ -13,16 +13,6 @@
|
|
13
13
|
GetComponent<Renderer>().material.color = new Color32(248, 168, 133, 1);
|
14
14
|
|
15
15
|
をBオブジェクトで実行するようにしたいです
|
16
|
-
|
17
|
-
### 発生している問題・エラーメッセージ
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
```
|
22
|
-
|
23
|
-
NewBehaviourScript.cs(45,34):error Cannot implicitly type 'UnityEngine.GameObject[]' to 'UnityEngine.GameObject'
|
24
|
-
|
25
|
-
```
|
26
16
|
|
27
17
|
|
28
18
|
|
@@ -140,6 +130,48 @@
|
|
140
130
|
|
141
131
|
|
142
132
|
|
133
|
+
受けっとった側は
|
134
|
+
|
135
|
+
using System.Collections;
|
136
|
+
|
137
|
+
using System.Collections.Generic;
|
138
|
+
|
139
|
+
using UnityEngine;
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
public class Gemeover : MonoBehaviour
|
144
|
+
|
145
|
+
{
|
146
|
+
|
147
|
+
// Start is called before the first frame update
|
148
|
+
|
149
|
+
void Start()
|
150
|
+
|
151
|
+
{
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
}
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
// Update is called once per frame
|
160
|
+
|
161
|
+
void Update()
|
162
|
+
|
163
|
+
{
|
164
|
+
|
165
|
+
void Message()
|
166
|
+
|
167
|
+
{
|
168
|
+
|
169
|
+
GetComponent<Renderer>().material.color = new Color32(248, 168, 133, 1);
|
170
|
+
|
171
|
+
}
|
172
|
+
|
173
|
+
|
174
|
+
|
143
175
|
|
144
176
|
|
145
177
|
|
@@ -148,13 +180,15 @@
|
|
148
180
|
|
149
181
|
|
150
182
|
|
151
|
-
|
183
|
+
void Message()
|
152
184
|
|
153
|
-
|
185
|
+
{
|
154
186
|
|
155
|
-
o
|
187
|
+
GetComponent<Renderer>().material.color = new Color32(248, 168, 133, 1);
|
156
188
|
|
189
|
+
}
|
190
|
+
|
157
|
-
を入れ
|
191
|
+
を入れたらエラーになりました
|
158
192
|
|
159
193
|
|
160
194
|
|
1
変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -58,7 +58,7 @@
|
|
58
58
|
|
59
59
|
// Update is called once per frame
|
60
60
|
|
61
|
-
void
|
61
|
+
void Update()
|
62
62
|
|
63
63
|
{
|
64
64
|
|