26 lines
714 B
C#
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);
|
|
}
|
|
}
|
|
} |