BaseControl.cs 350 B

123456789101112
  1. using System;
  2. using UnityEngine;
  3. namespace COM3D2.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. }