From 54ee1548072db221ce624bbecaf34fa910d1cdb0 Mon Sep 17 00:00:00 2001 From: RochesterX Date: Mon, 7 Apr 2025 18:56:43 -0400 Subject: [PATCH] Meeting --- Assets/Scenes/Title Screen.unity | 11 +++++++++-- Assets/Scripts/Game/FallPlatform.cs | 12 ++++++++++-- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/Assets/Scenes/Title Screen.unity b/Assets/Scenes/Title Screen.unity index c29d583..4f5ebd1 100644 --- a/Assets/Scenes/Title Screen.unity +++ b/Assets/Scenes/Title Screen.unity @@ -1716,7 +1716,14 @@ MonoBehaviour: Playtest Reset - confirmation' + confirmation + + Player Join screen update (clarify map select) + + Bones update + + Sound + effects in game' m_isRightToLeft: 0 m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} @@ -1781,7 +1788,7 @@ MonoBehaviour: m_VertexBufferAutoSizeReduction: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 - m_margin: {x: 0, y: 0, z: -420.40103, w: 0} + m_margin: {x: 0, y: 0, z: -608.7636, w: 0} m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 m_hasFontAssetChanged: 0 diff --git a/Assets/Scripts/Game/FallPlatform.cs b/Assets/Scripts/Game/FallPlatform.cs index dc8eed6..acfbc21 100644 --- a/Assets/Scripts/Game/FallPlatform.cs +++ b/Assets/Scripts/Game/FallPlatform.cs @@ -17,9 +17,17 @@ public class FallPlatform : MonoBehaviour } private void OnTriggerEnter2D(Collider2D collision) // Makes platform fall when player or another platform touch it { - if (!falling && (collision.gameObject.CompareTag("Player") || collision.transform.GetChild(0).TryGetComponent(out FallPlatform _))) + try { - StartCoroutine(FallAfterDelay()); + if (collision.transform.childCount != 0 && !falling && (collision.gameObject.CompareTag("Player") || collision.transform.GetChild(0).TryGetComponent(out FallPlatform _))) + { + StartCoroutine(FallAfterDelay()); + } + + } + catch (System.Exception e) + { + Debug.LogError("Error in FallPlatform: " + e.Message); } }