23 lines
598 B
C#
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()
|
||
|
|
{
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|