HeavenStudio/Assets/Scripts/LevelEditor/ButtonDoubleClick.cs
Braedon Lewis 495cc5ad4c
General editor improvements (#257)
* Spaceball cleanup and small bug fix

* Replace old hit sound in spaceball

* Camera filters

* added 9 new filters, including 3 types of sepia

* oops

* remark

* normalization of fade out and fade in on filters are by 100

* GenerateFilterTypeEnum comments

* Pure black and white filter

* Zooming

* Constant playback bar offset

* Prepare box selector rewrite

* Update icons, finalize
2023-02-04 22:05:36 -05:00

21 lines
460 B
C#

using UnityEngine;
using UnityEngine.Events;
using UnityEngine.EventSystems;
namespace HeavenStudio.Editor
{
public class ButtonDoubleClick : MonoBehaviour, IPointerClickHandler
{
public UnityEvent onDoubleClick;
public void OnPointerClick(PointerEventData eventData)
{
var tap = eventData.clickCount;
if (tap == 2)
{
onDoubleClick.Invoke();
}
}
}
}