BaseControl.cs 343 B

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