the code looks fine to me but it says there is an issue.
Tell me what you guys see and if there is a fix.
using UnityEngine;
using System.Collections;
public class NPC_Dialogue : MonoBehaviour {
public string[ ] answerButtons;
public string[ ] Questions;
bool DisplayDialog = false;
bool ActivateQuest = false;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
void OnGUI(){
GUILayout.BeginArea (new Rect (700, 600, 400, 400));
if (DisplayDialog !ActivateQuest){
GUILayout.Label (Questions[0]);
GUILayout.Label (Questions[1]);
}
void OnTriggerEnter(){
DisplayDialog = true;
}
void OnTriggerExit(){
DisplayDialog = false;
}
}