using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NpsKey : MonoBehaviour
{
public bool EndOialog;
public GameObject Dialog1;
}
if(EndOialog == true)
{
Time.timeScale = 1;
Dialog1.SetActive (false);
}
}
void OnTriggerEnter(Collider col)
{
if(col.tag == "Player")
{
Time.timeScale = 0;
Dialog1.SetActive (true);
}
}
}