MiniGames/Assets/Scripts/SkyWalker/Skywalker_LaserTrap.cs

13 lines
297 B
C#
Raw Normal View History

2025-09-01 00:01:33 +05:00
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();
}
}
}