17 lines
345 B
C#
17 lines
345 B
C#
using UnityEngine;
|
|
|
|
namespace Scampz.GameJam.Assets.Scripts.Player
|
|
{
|
|
public class TalkedToVoid : MonoBehaviour
|
|
{
|
|
public void OnTriggerStay(Collider other)
|
|
{
|
|
if (other.CompareTag("Player"))
|
|
{
|
|
if (Input.GetButton(InputOptions.Submit))
|
|
UnlockSanctumState.Instance.VoidOpened = true;
|
|
}
|
|
}
|
|
}
|
|
}
|