質問編集履歴
1
リスト要素の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -112,6 +112,8 @@
|
|
112
112
|
|
113
113
|
public List<CharTemplete> mydekki = new List<CharTemplete>();
|
114
114
|
|
115
|
+
public List<CharTemplate> mylist = new List<CharTemplate>();
|
116
|
+
|
115
117
|
|
116
118
|
|
117
119
|
public void firstDekkiInit(){
|
@@ -120,7 +122,7 @@
|
|
120
122
|
|
121
123
|
foreach(var v in mydekki){
|
122
124
|
|
123
|
-
my
|
125
|
+
mylist.Add(v);
|
124
126
|
|
125
127
|
Debug.Log(v); //null
|
126
128
|
|
@@ -240,7 +242,7 @@
|
|
240
242
|
|
241
243
|
prefab[preCnt].transform.localScale = Vector3.one;
|
242
244
|
|
243
|
-
prefab[preCnt].GetComponentInChildren<Text>().text = deck.my
|
245
|
+
prefab[preCnt].GetComponentInChildren<Text>().text = deck.mylist[preCnt].name;
|
244
246
|
|
245
247
|
preCnt++;
|
246
248
|
|