Created new map for free-for-all mode

Platform3 (MOUNTAIN) is the new map. I tried to fix the FallPlatform script so falling platforms would respawn but I didn't get anywhere. Will try again later
This commit is contained in:
TGall8
2025-03-05 21:08:52 -05:00
parent c160ef0b5c
commit 47314da759
4 changed files with 4754 additions and 46 deletions

View File

@@ -8,12 +8,12 @@ public class FallPlatform : MonoBehaviour
bool falling;
Rigidbody2D rb;
//Vector3 position;
//Transform defposition;
void Start()
{
//defposition = gameObject.transform;
rb = transform.parent.GetComponent<Rigidbody2D>();
//position = rb.transform.position;
}
private void OnTriggerEnter2D(Collider2D collision)
@@ -29,7 +29,13 @@ public class FallPlatform : MonoBehaviour
falling = true;
yield return new WaitForSeconds(fallDelay);
rb.bodyType = RigidbodyType2D.Dynamic;
//yield return new WaitForSeconds(resetDelay);
yield return new WaitForSeconds(resetDelay);
//Respawn();
}
//private void Respawn()
//{
//rb.bodyType = RigidbodyType2D.Static;
//gameObject.transform.position = defposition.position;
//}
}