MoTaForPSVita/Assets/Scripts/Event/Level/EventLevel42Actor1.cs
2024-04-30 17:39:50 +08:00

26 lines
932 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EventLevel42Actor1 : ActorController
{
public override bool Interaction()
{
string talk = "巫师会用魔法攻击路过的人,两个魔法警卫之间的魔法会使你的生命减少一半。";
// 老头说话
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, "41-48");
// NPC 回收
GameManager.Instance.PoolManager.RecycleResource(gameObject);
});
return false;
}
}