mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-13 00:37:37 +02:00
Finally perfected grid game selector
This commit is contained in:
@ -0,0 +1,22 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace RhythmHeavenMania.Editor
|
||||
{
|
||||
public class GridGameSelectorGame : MonoBehaviour
|
||||
{
|
||||
public GameObject GameTitlePreview;
|
||||
|
||||
public GridGameSelector GridGameSelector;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
Tooltip.instance.AddTooltip(this.gameObject, this.gameObject.name);
|
||||
}
|
||||
|
||||
public void OnClick()
|
||||
{
|
||||
GridGameSelector.SelectGame(this.gameObject.name, this.transform.GetSiblingIndex());
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user