void OnTriggerEnter(Collider col) { if (col.gameObject.tag == "Player") { if (dialog != null && !FPH_DialogManager.isEnabled) { dialog.SendMessage("Play"); FPH_DialogManager.currentDialog = gameObject; } } }
void Talk() { if (dialog != null && !FPH_DialogManager.isEnabled) { dialog.SendMessage("Play"); FPH_DialogManager.currentDialog = gameObject; } }
// Use this for initialization void Start() { dialog.SendMessage("Play"); FPH_DialogManager.currentDialog = gameObject; }