diff --git a/Assets/Resources/Prefabs/Panels/Loading Panel.prefab b/Assets/Resources/Prefabs/Panels/Loading Panel.prefab index 06991d0..b6940b1 100644 --- a/Assets/Resources/Prefabs/Panels/Loading Panel.prefab +++ b/Assets/Resources/Prefabs/Panels/Loading Panel.prefab @@ -227,7 +227,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 0 + m_IsActive: 1 --- !u!224 &4501886400186872935 RectTransform: m_ObjectHideFlags: 0 @@ -318,8 +318,6 @@ MonoBehaviour: - {fileID: 21300000, guid: 4fbfde8fa7f268d46aaf3ba594cc3eea, type: 3} - {fileID: 21300000, guid: cbd52561c19af16428d3e5c61048e4e4, type: 3} - {fileID: 21300000, guid: e18c394847e2c3d4b8af043437d3c5ab, type: 3} - fullText: "\uBD88\uB7EC\uC624\uB294 \uC911..." - interval: 0.5 flipDuration: 0.3 delayBetweenFlips: 1 imageBackground: {fileID: 634998020045031155} diff --git a/Assets/Script/Main/LoadingPanelController.cs b/Assets/Script/Main/LoadingPanelController.cs index 35c1cd7..306f0b9 100644 --- a/Assets/Script/Main/LoadingPanelController.cs +++ b/Assets/Script/Main/LoadingPanelController.cs @@ -16,8 +16,18 @@ public class LoadingPanelController : MonoBehaviour [SerializeField] private Sprite[] dragonSprites; [SerializeField] private Sprite[] tigerSprites; - [SerializeField] private string fullText = "불러오는 중..."; // 원하는 문구를 인스펙터에서 설정 가능 - [SerializeField] private float interval = 0.4f; // 글자 추가 속도 조정 가능 + private string fullText = "불러오는 중..."; + private readonly string[] loadingMessages = { + "흑돌을 닦는 중...", + "백돌을 닦는 중...", + "알을 반짝반짝 닦는 중...", + "방석을 터는 중...", + "오목 룰북을 읽는 중...", + "한 수 깊이 생각하는 중...", + "흑돌과 백돌을 구분하는 중...", + "돌이 동글동글한지 확인하는 중..." + }; + private float interval = 0.2f; [SerializeField] float flipDuration = 0.3f; // 회전 시간 [SerializeField] float delayBetweenFlips = 1f; // 이미지 변경 주기 @@ -86,6 +96,7 @@ public class LoadingPanelController : MonoBehaviour if (currentLength == fullText.Length) { yield return new WaitForSeconds(1f); // 1초 대기 + fullText = loadingMessages[Random.Range(0, loadingMessages.Length)]; // 랜덤 메시지 선택 currentLength = 0; // 다시 처음부터 시작 }