From 06c6c578a281c2c427142a9e2548c4cf37d72159 Mon Sep 17 00:00:00 2001 From: BOTAlex Date: Fri, 9 Feb 2024 02:24:02 +0100 Subject: [PATCH] Disable and reanble through script face-in image --- Assets/Scenes/GameScene.unity | 4 ++++ Assets/Scripts/UI/Wait2SecondsToShow.cs | 2 ++ 2 files changed, 6 insertions(+) diff --git a/Assets/Scenes/GameScene.unity b/Assets/Scenes/GameScene.unity index 10b81d0..e617ca5 100644 --- a/Assets/Scenes/GameScene.unity +++ b/Assets/Scenes/GameScene.unity @@ -4268,6 +4268,10 @@ PrefabInstance: propertyPath: m_Name value: UI objectReference: {fileID: 0} + - target: {fileID: 7320843173059553054, guid: 48e0e53445d42474895d37a321c39d1c, type: 3} + propertyPath: m_Enabled + value: 0 + objectReference: {fileID: 0} - target: {fileID: 9075173710402410956, guid: 48e0e53445d42474895d37a321c39d1c, type: 3} propertyPath: m_AnchoredPosition.x value: -9.998047 diff --git a/Assets/Scripts/UI/Wait2SecondsToShow.cs b/Assets/Scripts/UI/Wait2SecondsToShow.cs index e1e77d2..07d3020 100644 --- a/Assets/Scripts/UI/Wait2SecondsToShow.cs +++ b/Assets/Scripts/UI/Wait2SecondsToShow.cs @@ -1,5 +1,6 @@ using System.Collections; using System.Collections.Generic; +using Unity.VisualScripting; using UnityEngine; using UnityEngine.UI; @@ -16,6 +17,7 @@ public class Wait2SecondsToShow : MonoBehaviour void StartFade() { + canvas.enabled = true; StartCoroutine(FadeOut(2f)); }