Global Game Jam 2022
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

19 lines
351 B

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Variables;
public class KillPlayer : MonoBehaviour
{
[SerializeField]
private Reference<bool> m_isDead;
private void OnTriggerEnter2D(Collider2D collision)
{
if (collision.CompareTag("Player"))
m_isDead.Value = true;
}
}