bare bones selection system

This commit is contained in:
Braedon
2022-01-12 22:59:54 -05:00
parent 81ee9a8eca
commit 99832cfc23
11 changed files with 678 additions and 355 deletions

View 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;*/
}
}
}