Synchronise Twitch Events to your Phillips Hue Lights
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Twitchue/Assets/Scripts/UI/SidebarManager.cs

15 lines
406 B

4 years ago
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
public class SidebarManager : MonoBehaviour
{
[SerializeField] private List<SidebarEntryManager> Entries;
public void SelectEntry(Transform obj)
{
Entries.FirstOrDefault(z => z.transform == obj).MarkSelected();
Entries.Where(z => z.transform != obj).ToList().ForEach(z => z.MarkUnselected());
}
}