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

回答編集履歴

2

アクセス修飾子を修正

2020/12/01 12:58

投稿

PinoMatcha
PinoMatcha

スコア368

answer CHANGED
@@ -4,9 +4,10 @@
4
4
  // usingなどは省きます
5
5
 
6
6
  public class WordData {
7
+ // 2020/12/1 22:00 アクセス修飾子を修正しました。
7
- private string fCont; // 表面内容
8
+ public string fCont; // 表面内容
8
- private string bCont; // 裏面内容
9
+ public string bCont; // 裏面内容
9
- private Image img; // 添付する写真
10
+ public Image img; // 添付する写真
10
11
 
11
12
  public WordData (string fCont, string bCont, Image image) {
12
13
  this.fCont = fCont;

1

誤字の修正

2020/12/01 12:58

投稿

PinoMatcha
PinoMatcha

スコア368

answer CHANGED
@@ -34,7 +34,7 @@
34
34
  // id設定
35
35
  id = 0;
36
36
  Debug.Log(wordList[id].fCont); // 日本語
37
- Debug.Log(wordList[id].bCont); // 英語
37
+ Debug.Log(wordList[id].bCont); // 英語
38
38
  }
39
39
  }
40
40
  ```