White circle hidden at start

This commit is contained in:
BOT Alex 2024-04-21 10:48:37 +02:00
parent a2d8008643
commit 13100a8399
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -2,9 +2,13 @@ using UnityEngine;
public class StartSceneTransition : MonoBehaviour
{
Animator animator;
void Start()
{
SpriteRenderer sp = GetComponent<SpriteRenderer>();
sp.enabled = false;
animator = GetComponent<Animator>();
animator.SetTrigger("start1");
}