19 lines
423 B
C#
19 lines
423 B
C#
|
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);
|
||
|
}
|
||
|
|
||
|
}
|