27 lines
909 B
C#
27 lines
909 B
C#
|
using System;
|
|||
|
using System.Collections;
|
|||
|
using System.Collections.Generic;
|
|||
|
using UnityEngine;
|
|||
|
|
|||
|
public class EventLevel2Actor3 : ActorController
|
|||
|
{
|
|||
|
public override bool Interaction()
|
|||
|
{
|
|||
|
// <20><>ͷ˵<CDB7><CBB5>
|
|||
|
GameManager.Instance.UIManager.ShowDialog(GetComponent<ResourceController>().Name, new List<string> { "<22><>л<EFBFBD><D0BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ң<EFBFBD><D2A3><EFBFBD> 1000 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>¡<EFBFBD>" }, () =>
|
|||
|
{
|
|||
|
// <20><><EFBFBD>ý<EFBFBD><C3BD><EFBFBD>
|
|||
|
GameManager.Instance.PlayerManager.PlayerInfo.Gold += 1000;
|
|||
|
// <20><>ʾ<EFBFBD><CABE>Ϣ
|
|||
|
GameManager.Instance.UIManager.ShowInfo("<22><><EFBFBD><EFBFBD> 1000 <20><><EFBFBD>ҡ<EFBFBD>");
|
|||
|
// <20><>Ƶ<EFBFBD><C6B5><EFBFBD><EFBFBD>
|
|||
|
GameManager.Instance.SoundManager.PlaySound(ESoundType.Music, "1-9");
|
|||
|
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
GameManager.Instance.PlayerManager.Enable = true;
|
|||
|
// NPC <20><><EFBFBD><EFBFBD>
|
|||
|
GameManager.Instance.PoolManager.RecycleResource(gameObject);
|
|||
|
});
|
|||
|
return false;
|
|||
|
}
|
|||
|
}
|