Skip to content

Commit 962ef79

Browse files
committed
Fix test project
1 parent abc3504 commit 962ef79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TestProjects/Main/Assets/Scripts/iOSTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,13 +344,13 @@ private void InstantiateAllTestButtons()
344344
Transform buttonGroup =
345345
GameObject.Instantiate(m_gameObjectReferences.ButtonGroupTemplate, m_gameObjectReferences.ButtonScrollViewContent);
346346
Transform buttonGroupName = buttonGroup.GetChild(0).transform;
347-
Transform buttonGameObject = buttonGroup.GetChild(1).transform;
347+
Transform buttonGameObject = buttonGroup.GetChild(1).GetChild(0).transform;
348348
// Set group name
349349
buttonGroupName.GetComponentInChildren<Text>().text = group.Key.ToString();
350350
// Instantiate buttons
351351
foreach (DictionaryEntry test in group.Value)
352352
{
353-
Transform button = GameObject.Instantiate(buttonGameObject, buttonGroup);
353+
Transform button = GameObject.Instantiate(buttonGameObject, buttonGroup.GetChild(1));
354354
button.gameObject.GetComponentInChildren<Text>().text = test.Key.ToString();
355355
button.GetComponent<Button>().onClick.AddListener(delegate
356356
{

0 commit comments

Comments
 (0)