This commit is contained in:
RochesterX
2025-04-07 18:56:43 -04:00
parent 1bdf8b5280
commit 54ee154807
2 changed files with 19 additions and 4 deletions

View File

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

View File

@@ -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);
}
}