public void ShowQuest(string title, string description, string objectif, string nameSave, BookQuest book) { questPannel.SetActive(true); questTitle.text = title; questDescription.text = description; questObjectif.text = objectif; questButton = questButton.GetComponent<Button>(); //questButton.onClick.AddListener(() => { book.ChageStatQuest(nameSave, 1); questPannel.SetActive(false); }); }
public void DisplayQuest(string title, string description, string goal, string nameSave, BookQuest book) { questUI.ShowQuest(title, description, goal, nameSave, book); }