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

@@ -1386,7 +1386,7 @@ Transform:
m_GameObject: {fileID: 5636027701359458481}
serializedVersion: 2
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalPosition: {x: 36, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []

View File

@@ -260,7 +260,7 @@ BoxCollider2D:
drawMode: 0
adaptiveTiling: 0
m_AutoTiling: 0
m_Size: {x: 0.99981785, y: 0.056192875}
m_Size: {x: 0.9974469, y: 0.056192875}
m_EdgeRadius: 0
--- !u!114 &5094694631672972304
MonoBehaviour:

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