回答編集履歴
1
typo
test
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
```csharp
|
2
2
|
using UnityEngine;
|
3
3
|
|
4
|
-
[System.Serialize
|
4
|
+
[System.Serializable]
|
5
5
|
public class TextChecker
|
6
6
|
{
|
7
|
-
[Serialize
|
7
|
+
[SerializeField] private GameObject targetObject; // 表示/非表示を切り替える対象のGameObject
|
8
|
-
[Serialize
|
8
|
+
[SerializeField] private string keyword; // チェックするキーワード
|
9
9
|
|
10
10
|
public TextChecker(GameObject obj, string key)
|
11
11
|
{
|