From 13100a8399054a0b5ed96f17222864677a83ccfb Mon Sep 17 00:00:00 2001 From: BOT Alex <44818698+MagicBOTAlex@users.noreply.github.com> Date: Sun, 21 Apr 2024 10:48:37 +0200 Subject: [PATCH] White circle hidden at start --- Assets/Prefabs/UI/GameUI.prefab | 2 +- Assets/Scripts/UI/StartSceneTransition.cs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Assets/Prefabs/UI/GameUI.prefab b/Assets/Prefabs/UI/GameUI.prefab index f9f49e2..7193038 100644 --- a/Assets/Prefabs/UI/GameUI.prefab +++ b/Assets/Prefabs/UI/GameUI.prefab @@ -2040,7 +2040,7 @@ SpriteRenderer: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 3636042489164766214} - m_Enabled: 1 + m_Enabled: 0 m_CastShadows: 0 m_ReceiveShadows: 0 m_DynamicOccludee: 1 diff --git a/Assets/Scripts/UI/StartSceneTransition.cs b/Assets/Scripts/UI/StartSceneTransition.cs index 5c3cec1..45ce278 100644 --- a/Assets/Scripts/UI/StartSceneTransition.cs +++ b/Assets/Scripts/UI/StartSceneTransition.cs @@ -2,9 +2,13 @@ using UnityEngine; public class StartSceneTransition : MonoBehaviour { + Animator animator; void Start() { + SpriteRenderer sp = GetComponent(); + sp.enabled = false; + animator = GetComponent(); animator.SetTrigger("start1"); }