From 33d0a9078f7e4a5e55850482f9291bcaf408dd80 Mon Sep 17 00:00:00 2001 From: Kamila Stawarska Date: Sat, 26 Aug 2023 01:03:34 +0200 Subject: [PATCH] Fixed for avoiding scripts execution order --- NEG/UI/UnityUi/Area/MonoArea.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/NEG/UI/UnityUi/Area/MonoArea.cs b/NEG/UI/UnityUi/Area/MonoArea.cs index e603e89..8b46887 100644 --- a/NEG/UI/UnityUi/Area/MonoArea.cs +++ b/NEG/UI/UnityUi/Area/MonoArea.cs @@ -31,7 +31,11 @@ namespace NEG.UI.Area { if (setAsDefaultArea) UiManager.Instance.CurrentArea = this; - else + } + + protected void Start() + { + if(!setAsDefaultArea) SetEnabled(false); }