MiniGames/Assets/Scripts/SkyWalker/Skywalker_LaserTrap.cs
2025-09-01 00:01:33 +05:00

13 lines
297 B
C#

using UnityEngine;
public class Skywalker_LaserTrap : MonoBehaviour
{
private void OnTriggerEnter(Collider col)
{
if (col.CompareTag("Player"))
{
Debug.Log("Player hit by laser!");
Skywalker_GameManager.Instance.TriggerGameOver();
}
}
}