From 61abc4330f03261b4038e1fc9478689af4376b24 Mon Sep 17 00:00:00 2001 From: psy020529 <163077953+psy020529@users.noreply.github.com> Date: Mon, 2 Dec 2024 20:41:00 +0900 Subject: [PATCH 1/3] Update ligh_tilted.prefab MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 전등 기울어진 각도 2도에서 8도로 올렸습니다! --- .../Course Library/Anomalies/Anomaly12/ligh_tilted.prefab | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/302/Assets/Course Library/Anomalies/Anomaly12/ligh_tilted.prefab b/302/Assets/Course Library/Anomalies/Anomaly12/ligh_tilted.prefab index 4eb45fd..9758c60 100644 --- a/302/Assets/Course Library/Anomalies/Anomaly12/ligh_tilted.prefab +++ b/302/Assets/Course Library/Anomalies/Anomaly12/ligh_tilted.prefab @@ -191,7 +191,7 @@ Transform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 7578491145889696626} - m_LocalRotation: {x: 0, y: 0.01745245, z: 0, w: 0.99984777} + m_LocalRotation: {x: 0, y: 0.06975647, z: 0, w: 0.9975641} m_LocalPosition: {x: -13.900001, y: 0, z: 0.5} m_LocalScale: {x: 1, y: 1, z: 2.7} m_ConstrainProportionsScale: 0 @@ -200,7 +200,7 @@ Transform: - {fileID: 2253782372444049494} m_Father: {fileID: 0} m_RootOrder: 0 - m_LocalEulerAnglesHint: {x: 0, y: 2, z: 0} + m_LocalEulerAnglesHint: {x: 0, y: 8, z: 0} --- !u!65 &-5532419088782107508 BoxCollider: m_ObjectHideFlags: 0 From 6edbaa35cac2112b4fbaa32d237883b8d02ad606 Mon Sep 17 00:00:00 2001 From: psy020529 <163077953+psy020529@users.noreply.github.com> Date: Mon, 2 Dec 2024 21:28:50 +0900 Subject: [PATCH 2/3] Update Anomaly8_micsound.cs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 5초 후에 이상한 소리가 나도록 설정했습니다! --- .../SpecificAnomalyManager/Anomaly8_micsound.cs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/302/Assets/Scripts/SpecificAnomalyManager/Anomaly8_micsound.cs b/302/Assets/Scripts/SpecificAnomalyManager/Anomaly8_micsound.cs index 89139fc..ac350d3 100644 --- a/302/Assets/Scripts/SpecificAnomalyManager/Anomaly8_micsound.cs +++ b/302/Assets/Scripts/SpecificAnomalyManager/Anomaly8_micsound.cs @@ -10,6 +10,9 @@ public class Anomaly8_micsound : InteractableObject, IInteractable public float maxVolumeDistance = 5f; // Distance at which the audio reaches max volume public float startDistance = 30f; // Maximum distance where the audio starts being audible public float fadeOutDuration = 2f; // Duration for the fade-out effect after interaction + public float audioStartDelay = 5f; // Delay in seconds before the audio starts playing + + private bool isAudioActive = false; private void Start() { @@ -29,7 +32,8 @@ private void Start() if (audioSource != null) { audioSource.loop = true; // Ensure the sound loops continuously until interaction - audioSource.Play(); // Start playing audio immediately + audioSource.volume = 0f; + StartCoroutine(DelayedAudiosStart()); } else { @@ -37,6 +41,15 @@ private void Start() } } + private IEnumerator DelayedAudiosStart() + { + yield return new WaitForSeconds(audioStartDelay); + isAudioActive = true; + audioSource.Play(); + Debug.Log("Audio playback started after delay."); + + } + private void Update() { if (playerTransform == null || audioSource == null) return; From 21ceceefa62799f83c20418faff1082c133987fe Mon Sep 17 00:00:00 2001 From: psy020529 <163077953+psy020529@users.noreply.github.com> Date: Mon, 2 Dec 2024 21:59:12 +0900 Subject: [PATCH 3/3] Anomaly24 Dealy added MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 지연시간 추가했고, 슬리프 하고 있을 때에는 stage clear상태 건들지 않도록 코드 조금 수정했습니다! --- .../Anomaly24/sitGirl_dream_pivoted.prefab | 3 +-- .../Anomaly24_luciddream.cs | 17 +++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/302/Assets/Course Library/Anomalies/Anomaly24/sitGirl_dream_pivoted.prefab b/302/Assets/Course Library/Anomalies/Anomaly24/sitGirl_dream_pivoted.prefab index ef76847..d8b3cb5 100644 --- a/302/Assets/Course Library/Anomalies/Anomaly24/sitGirl_dream_pivoted.prefab +++ b/302/Assets/Course Library/Anomalies/Anomaly24/sitGirl_dream_pivoted.prefab @@ -45,7 +45,7 @@ AudioSource: serializedVersion: 4 OutputAudioMixerGroup: {fileID: -5523475028350657157, guid: 015e5e0494ba69d49a8752e353c68200, type: 2} m_audioClip: {fileID: 8300000, guid: a2d444c66d9eecc4aab7c2aa628f4cae, type: 3} - m_PlayOnAwake: 1 + m_PlayOnAwake: 0 m_Volume: 1 m_Pitch: 1 Loop: 0 @@ -143,7 +143,6 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: duration: 10 - blurEffectPrefab: {fileID: 5749295200580246030, guid: 49570e3cac9d9fd48a18034aa29f20b8, type: 3} --- !u!1001 &1226223968390349156 PrefabInstance: m_ObjectHideFlags: 0 diff --git a/302/Assets/Scripts/SpecificAnomalyManager/Anomaly24_luciddream.cs b/302/Assets/Scripts/SpecificAnomalyManager/Anomaly24_luciddream.cs index 977d82b..152fcc2 100644 --- a/302/Assets/Scripts/SpecificAnomalyManager/Anomaly24_luciddream.cs +++ b/302/Assets/Scripts/SpecificAnomalyManager/Anomaly24_luciddream.cs @@ -4,7 +4,7 @@ [RequireComponent(typeof(AudioSource))] public class Anomaly24_luciddream : MonoBehaviour { - [SerializeField] private float duration = 10f; // 제한 시간 10초로 설정 + [SerializeField] private float duration = 30f; private AudioSource audioSource; private Transform mainCamera; @@ -25,18 +25,16 @@ private IEnumerator LucidDreamSequence() { GameManager.Instance.SetStageClear(); + yield return new WaitForSeconds(10f); + + audioSource.Play(); + float elapsedTime = 0f; while (elapsedTime < duration) { elapsedTime += Time.deltaTime; - // 디버깅 메시지: 현재 경과 시간 표시 - if (Mathf.FloorToInt(elapsedTime) % 2 == 0) - { - Debug.Log($"Elapsed Time: {elapsedTime:F2} seconds"); - } - // Main Camera 바라보기 if (mainCamera != null) { @@ -52,8 +50,11 @@ private IEnumerator LucidDreamSequence() yield return null; } + if(GameManager.Instance.GetGameState() != GameManager.GameState.Sleeping) + { + GameManager.Instance.SetStageNoClear(); + } - GameManager.Instance.SetStageNoClear(); var playerController = FindObjectOfType(); if (playerController != null) {