mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-11 04:05:11 +00:00
52 lines
No EOL
1.2 KiB
C#
52 lines
No EOL
1.2 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace RhythmHeavenMania.Editor
|
|
{
|
|
public class Selector : MonoBehaviour
|
|
{
|
|
private bool clicked;
|
|
|
|
public static Selector instance { get; private set; }
|
|
|
|
private void Awake()
|
|
{
|
|
instance = this;
|
|
}
|
|
|
|
private void LateUpdate()
|
|
{
|
|
/*if (Input.GetMouseButtonUp(0))
|
|
{
|
|
if (!Timeline.instance.IsDraggingEvent())
|
|
{
|
|
if (clicked == false)
|
|
{
|
|
if (!Input.GetKey(KeyCode.LeftShift))
|
|
{
|
|
print('a');
|
|
Selections.instance.DeselectAll();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
clicked = false;*/
|
|
}
|
|
|
|
public void Click(TimelineEventObj eventObj)
|
|
{
|
|
/*if (Input.GetKey(KeyCode.LeftShift))
|
|
{
|
|
Selections.instance.ShiftClickSelect(eventObj);
|
|
}
|
|
else
|
|
{
|
|
Selections.instance.ClickSelect(eventObj);
|
|
}
|
|
|
|
clicked = true;*/
|
|
}
|
|
}
|
|
} |