石头Day2

This commit is contained in:
2024-12-29 03:19:06 +08:00
parent 381a691c84
commit 915044d55c
32 changed files with 4496 additions and 3766 deletions
@@ -11,8 +11,6 @@ namespace AibisDream
{
public class DialogController : Singleton<DialogController>
{
private const string BookManager = "BookManager";
private DialogueRunner dialogueRunner;
private VariableStorageBehaviour _variableStorage;
@@ -61,11 +59,6 @@ namespace AibisDream
dialogueRunner = GetComponentInChildren<DialogueRunner>();
_variableStorage = GetComponentInChildren<InMemoryVariableStorage>();
// 开关书交互
BookManager bookManager = GameObject.Find(BookManager).gameObject.GetComponent<BookManager>();
bookManager.OnBookClosed += () => { IsBlock = false; };
bookManager.OnBookOpen += () => { IsBlock = true; };
dialogueRunner.onDialogueStart.AddListener(() =>
{
OnDialogueStart?.Invoke();