void EndDialogue() { //animator.SetBool("IsOpen", false); //animator.Play("achievement"); //Bookopen = true; //animator.Play("on"); Debug.Log("book"); PapayaEvents.Fire("OnDialogueEnd", currentDialogue); }
// Start is called before the first frame update void Start() { PapayaEvents.Register("OnDialogueEnd", OnDialogueEnd); gameObject.SetActive(false); }
void Awake() { currentPapayaEvents = this; events = new Dictionary <string, List <DialogueEventAction> >(); }