Small fixes

This commit is contained in:
RochesterX
2025-03-03 13:44:31 -05:00
parent 51fdbe29cc
commit 069aa7b2c3
3 changed files with 5 additions and 4 deletions

View File

@@ -15,7 +15,7 @@ public class FallPlatform : MonoBehaviour
}
private void OnTriggerEnter2D(Collider2D collision)
{
if (!falling && collision.gameObject.CompareTag("Player"))
if (!falling/* && collision.gameObject.CompareTag("Player")*/)
{
StartCoroutine(FallAfterDelay());
}
@@ -26,6 +26,7 @@ public class FallPlatform : MonoBehaviour
falling = true;
yield return new WaitForSeconds(fallDelay);
rb.bodyType = RigidbodyType2D.Dynamic;
Destroy(gameObject, destroyDelay);
yield return new WaitForSeconds(destroyDelay);
Destroy(gameObject);
}
}