2024-05-01 00:28:48 +08:00
|
|
|
using System;
|
2024-04-30 17:39:50 +08:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
public class EventLevel16Actor1 : ActorController
|
|
|
|
{
|
|
|
|
public override bool Interaction()
|
|
|
|
{
|
|
|
|
string talk = "听说塔内有2把隐藏的红钥匙。";
|
|
|
|
// 老头说话
|
|
|
|
GameManager.Instance.UIManager.ShowDialog(GetComponent<ResourceController>().Name, new List<string> { talk }, () =>
|
|
|
|
{
|
|
|
|
// 记笔记
|
|
|
|
GameManager.Instance.PlayerManager.AddInfoToNotepad(talk);
|
|
|
|
// 打开人物控制器
|
|
|
|
GameManager.Instance.PlayerManager.Enable = true;
|
|
|
|
// 音频播放
|
|
|
|
GameManager.Instance.SoundManager.PlaySound(ESoundType.Music, "11-19");
|
|
|
|
// NPC 回收
|
|
|
|
GameManager.Instance.PoolManager.RecycleResource(gameObject);
|
|
|
|
});
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|