private void UpdateLayerUI() { if (step == 0.0f) { return; } GameObject activeTile = tiles[tiles.Length - Mathf.CeilToInt(step)]; if (infoPopUp.isActiveAndEnabled) { infoPopUp.SetAnchor(activeTile.transform.Find("TagAnchor")); infoPopUp.Show(tiles.Length - Mathf.CeilToInt(step)); } if (quiz.isActiveAndEnabled) { quiz.transform.position = activeTile.transform.Find("TagAnchor").transform.position; quiz.transform.SetParent(activeTile.transform.Find("TagAnchor").transform); } }