From 8db0339620431da43fa2f78ef4c337a93a40f754 Mon Sep 17 00:00:00 2001 From: ilia Date: Tue, 25 Jan 2022 14:06:02 +0300 Subject: [PATCH] fix bug with layers --- Assets/scripts/tenPoints/HintSpawner.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Assets/scripts/tenPoints/HintSpawner.cs b/Assets/scripts/tenPoints/HintSpawner.cs index e652970..fe458da 100644 --- a/Assets/scripts/tenPoints/HintSpawner.cs +++ b/Assets/scripts/tenPoints/HintSpawner.cs @@ -49,6 +49,7 @@ public class HintSpawner : MonoBehaviour _hint.transform.SetParent(canv.gameObject.transform); activeButton.GetComponent().isSpawnerHint = false; } + activeButton.transform.SetSiblingIndex(activeButton.transform.parent.childCount); } void Update() {