Nearly finished.....
This commit is contained in:
16
Assets/Scripts/Player/TalkedToVoid.cs
Normal file
16
Assets/Scripts/Player/TalkedToVoid.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user