using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class quest : MonoBehaviour
{
public GameObject Panel;
public bool questYes;
public KeyCode qst;
public void OnTriggerEnter(Collider other)
{
if(questYes == false)
{
Panel.SetActive(true);
}
if (questYes && Input.GetKeyDown(qst))
{
questYes = true;
Panel.SetActive(false);
}
}
public void OnTriggerExit(Collider other)
{
Panel.SetActive(false);
}
}