DeviceDetailsUpdataDataCommand.cs 812 B

12345678910111213141516171819202122232425262728
  1. using Blue;
  2. using UnityEngine;
  3. namespace GHZLangChao
  4. {
  5. public class DeviceDetailsUpdataDataCommand : ICommand
  6. {
  7. private DeviceParameters DeviceParameter;
  8. private Transform currentPos;
  9. private DataItem item;
  10. public DeviceDetailsUpdataDataCommand(DeviceParameters DeviceParameter,Transform currentPos,DataItem item)
  11. {
  12. this.DeviceParameter = DeviceParameter;
  13. this.currentPos = currentPos;
  14. this.item = item;
  15. }
  16. public void OnExcute()
  17. {
  18. this.SendEvent(new DeviceDetailsUpdataDataEvent()
  19. {
  20. DeviceParameter = this.DeviceParameter,
  21. currentPos = this.currentPos,
  22. item = this.item
  23. });
  24. }
  25. }
  26. }