回答編集履歴
1
補足
answer
CHANGED
@@ -9,4 +9,24 @@
|
|
9
9
|
BasicPanel.SetActive(true);
|
10
10
|
OpenPanel.SetActive(false);
|
11
11
|
}
|
12
|
+
```
|
13
|
+
|
14
|
+
あと下記部分って意図した通りに動いてますでしょうか?
|
15
|
+
countを増やしてからifでチェックしてるので``count==0``は成立しないのかなとちょっと気になりました。
|
16
|
+
```cs
|
17
|
+
if(Input.GetMouseButtonDown(0))
|
18
|
+
{
|
19
|
+
count++;
|
20
|
+
Debug.Log("クリック確認" + count + "回");
|
21
|
+
if(count == 0)
|
22
|
+
text.text = text0; // ここは処理される?
|
23
|
+
else if(count == 1)
|
24
|
+
text.text = text1;
|
25
|
+
else if(count == 2)
|
26
|
+
text.text = text2;
|
27
|
+
else if(count == 3)
|
28
|
+
text.text = text3;
|
29
|
+
else
|
30
|
+
return;
|
31
|
+
}
|
12
32
|
```
|