Code cleanup.

This commit is contained in:
2022-11-15 12:12:29 +08:00
parent fcc9935325
commit 7b1f639412
4 changed files with 5 additions and 9 deletions

View File

@@ -200,8 +200,7 @@ namespace Cryville.Common.Unity.UI {
void GenerateLine(int index, int line) {
for (int j = 0; j < LineItemCount; j++) {
var child = GameObject.Instantiate(m_itemTemplate);
child.transform.SetParent(transform, false);
var child = GameObject.Instantiate(m_itemTemplate, transform, false);
lines[index][j] = child;
}
LoadLine(index, line);