Files
BookRPG/Assets/Scripts/GameManager.cs
2026-07-16 21:49:59 +01:00

23 lines
598 B
C#

using UnityEngine;
using EasyTalk.Controller;
public class GameManager : MonoBehaviour
{
private DialogueController dialogueController;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
dialogueController = FindFirstObjectByType<DialogueController>();
if(dialogueController == null)
Debug.LogError("DialogueController not found in the scene.");
else
dialogueController.PlayDialogue();
}
// Update is called once per frame
void Update()
{
}
}