BaseControl.cs 336 B

1234567891011121314151617
  1. using System;
  2. using UnityEngine;
  3. namespace MeidoPhotoStudio.Plugin;
  4. public abstract class BaseControl
  5. {
  6. public event EventHandler ControlEvent;
  7. public virtual void Draw(params GUILayoutOption[] layoutOptions)
  8. {
  9. }
  10. public virtual void OnControlEvent(EventArgs args) =>
  11. ControlEvent?.Invoke(this, args);
  12. }