SetImmersalLocalEvent.cs 567 B

12345678910111213141516171819202122232425
  1. using Blue;
  2. /// <summary>
  3. /// Immersal定位上传事件
  4. /// </summary>
  5. public class SetImmersalLocalEvent : IEvent
  6. {
  7. public bool isLocation;
  8. }
  9. /// <summary>
  10. /// 设置Immersal定位上传命令
  11. /// </summary>
  12. public class SetImmersalLocalCommand : ICommand
  13. {
  14. private bool isLocation;
  15. public SetImmersalLocalCommand(bool isLocation)
  16. {
  17. this.isLocation = isLocation;
  18. }
  19. public void OnExcute()
  20. {
  21. this.SendEvent<SetImmersalLocalEvent>(new SetImmersalLocalEvent(){isLocation = this.isLocation});
  22. }
  23. }