SLEAPY_SMURF/Assets/Scripts/surm.cs

17 lines
320 B
C#
Raw Normal View History

2023-04-29 20:13:37 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class surm : MonoBehaviour
{
private void OnTriggerEnter(Collider collision)
{
if (collision.gameObject.tag == "player")
{
collision.gameObject.GetComponent<player>().Surm();
}
}
}