HeavenStudio/Assets/Scripts/LevelEditor/EventSelector/GridGameSelectorGame.cs

22 lines
505 B
C#
Raw Normal View History

2022-01-11 00:17:29 +00:00
using UnityEngine;
using UnityEngine.UI;
2022-03-14 14:21:05 +00:00
namespace HeavenStudio.Editor
2022-01-11 00:17:29 +00:00
{
public class GridGameSelectorGame : MonoBehaviour
{
public GameObject GameTitlePreview;
public GridGameSelector GridGameSelector;
private void Start()
2022-01-11 00:17:29 +00:00
{
2022-01-18 00:40:23 +00:00
Tooltip.AddTooltip(this.gameObject, this.gameObject.name);
2022-01-11 00:17:29 +00:00
}
public void OnClick()
2022-01-11 00:17:29 +00:00
{
GridGameSelector.SelectGame(this.gameObject.name, this.transform.GetSiblingIndex());
2022-01-11 00:17:29 +00:00
}
}
}