revival/game/Assets/Scripts/Artefacts/ArtefactTriggerArea.cs

19 lines
423 B
C#
Raw Normal View History

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ArtefactTriggerArea : MonoBehaviour
{
public int id;
private void OnTriggerEnter(Collider Player)
{
EventHandler.current.ArtefactTriggerEnter(id);
PlayerInputHandler.id = id;
}
private void OnTriggerExit(Collider Player)
{
EventHandler.current.ArtefactTriggerExit(id);
}
}