mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 12:27:36 +02:00
bare bones selection system
This commit is contained in:
52
Assets/Scripts/LevelEditor/Selector.cs
Normal file
52
Assets/Scripts/LevelEditor/Selector.cs
Normal file
@ -0,0 +1,52 @@
|
||||
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;*/
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user