暫無描述
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.

EventUnitDescriptor.cs 606B

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