HeavenStudio/Assets/Scripts/LevelEditor/TempoFinderButton.cs

21 lines
514 B
C#
Raw Normal View History

2022-02-25 04:30:02 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;
2022-03-14 14:21:05 +00:00
namespace HeavenStudio.Editor
2022-02-25 04:30:02 +00:00
{
public class TempoFinderButton : Button, IPointerDownHandler
{
public TempoFinder tempoFinder;
public override void OnPointerDown(PointerEventData eventData)
{
if (eventData.button == PointerEventData.InputButton.Left)
{
tempoFinder.TapBPM();
}
}
}
}