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.
|
|
|
|
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());
|
|
|
|
|
}
|
|
|
|
|
}
|