33 lines
871 B
C#
33 lines
871 B
C#
using UnityEngine;
|
|
using WI;
|
|
using UnityEngine.UI;
|
|
using TMPro;
|
|
|
|
namespace Samkwang
|
|
{
|
|
public class UI_BranchLocationButton : MonoBehaviour
|
|
{
|
|
public Button button;
|
|
public TextMeshProUGUI Text_BranchName;
|
|
|
|
public UI_BranchLocation branchLocation;
|
|
|
|
public void Awake()
|
|
{
|
|
Text_BranchName = transform.GetComponentInChildren<TextMeshProUGUI>();
|
|
button = GetComponent<Button>();
|
|
button.onClick.AddListener(OnClickBranchLocationButton);
|
|
}
|
|
public void SetBranchLocationButton(string branchName, UI_BranchLocation branchLocation)
|
|
{
|
|
Text_BranchName.SetText(branchName);
|
|
this.branchLocation = branchLocation;
|
|
}
|
|
private void OnClickBranchLocationButton()
|
|
{
|
|
branchLocation.OnClickBranchLocation();
|
|
}
|
|
}
|
|
}
|
|
|