A game about forced loneliness, made by TACStudios
1using System.Collections.Generic;
2
3namespace Unity.VisualScripting
4{
5 [Descriptor(typeof(IEventUnit))]
6 public class EventUnitDescriptor<TEvent> : UnitDescriptor<TEvent>
7 where TEvent : class, IEventUnit
8 {
9 public EventUnitDescriptor(TEvent @event) : base(@event) { }
10
11 protected override string DefinedSubtitle()
12 {
13 return "Event";
14 }
15
16 protected override IEnumerable<EditorTexture> DefinedIcons()
17 {
18 if (unit.coroutine)
19 {
20 yield return BoltFlow.Icons.coroutine;
21 }
22 }
23 }
24}