EditorSettingCommand.cs 344 B

12345678910111213141516
  1. using Blue;
  2. public struct EditorSettingCommand : ICommand
  3. {
  4. private bool editor;
  5. public EditorSettingCommand(bool editor)
  6. {
  7. this.editor = editor;
  8. }
  9. public void OnExcute()
  10. {
  11. this.SendEvent<EditorSettingEvent>(new EditorSettingEvent(){
  12. editor = this.editor
  13. });
  14. }
  15. }