Game event selector broken, unity ui fucking sucks

This commit is contained in:
Braedon
2022-01-16 17:51:57 -05:00
parent 66a445439b
commit 9af52ba043
6 changed files with 610 additions and 124 deletions

View File

@ -1,5 +1,6 @@
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
namespace RhythmHeavenMania.Editor
@ -15,6 +16,16 @@ namespace RhythmHeavenMania.Editor
instance = this;
}
private void Update()
{
var buggedSelections = eventsSelected.FindAll(c => c == null);
if (buggedSelections.Count > 0)
{
for (int i = 0; i < buggedSelections.Count; i++)
Deselect(buggedSelections[i]);
}
}
public void ClickSelect(TimelineEventObj eventToAdd)
{
DeselectAll();