Meeting updates

This commit is contained in:
RochesterX
2025-03-17 19:59:41 -04:00
parent 8a510c32d5
commit a3e2c9c6e2
8 changed files with 1676 additions and 1667 deletions

14
Assets/HatRespawn.cs Normal file
View File

@@ -0,0 +1,14 @@
using UnityEngine;
public class HatRespawn : MonoBehaviour
{
void OnTriggerEnter2D(Collider2D collision)
{
if (collision.gameObject.CompareTag("Platformer Hazard"))
{
transform.position = GameManager.Instance.hatSpawnPosition;
GetComponent<Rigidbody2D>().linearVelocity = Vector2.zero;
transform.rotation = Quaternion.identity;
}
}
}