Implement enemies getting to a finish, enemy dying

This commit is contained in:
2024-08-13 16:46:46 +02:00
parent 3f715b2bbc
commit 5c6c425d9a
18 changed files with 514 additions and 461 deletions

View File

@@ -0,0 +1,20 @@
using Sirenix.OdinInspector;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
public class DetectTriggerComponent : MonoBehaviour
{
public UnityEvent<Collider> onTriggerEnter;
public UnityEvent<Collider> onTriggerExit;
private void OnTriggerEnter(Collider other)
{
onTriggerEnter?.Invoke(other);
}
private void OnTriggerExit(Collider other)
{
onTriggerExit?.Invoke(other);
}
}