Files
2026-04-30 17:40:26 +07:00

26 lines
714 B
C#

using UnityEngine;
namespace BrewMonster.UI
{
/// <summary>
/// This script should be attached to the trans point button in the world map.
/// A Transmit Point will show up when user use Transmit Scroll or Transmit Service. (Dịch vụ dịch chuyển ở NPC)
/// </summary>
public class WorldMapTransPoint : MonoBehaviour
{
[HideInInspector] public int id;
private DlgWorldMap _dlgWorldMap;
public void Init(DlgWorldMap dlgWorldMap, int id)
{
_dlgWorldMap = dlgWorldMap;
this.id = id;
}
public void OnClick()
{
_dlgWorldMap.OnTransPointClicked(id);
}
}
}