1234567891011121314151617181920212223242526 |
- using Blue;
- using UnityEngine;
- /// <summary>
- /// ShowDevice获取位置事件
- /// </summary>
- public struct ShowDeviceEvent : IEvent
- {
- public Transform ShowDeviceTransform;
- }
- /// <summary>
- /// ShowDevice获取位置命令
- /// </summary>
- public class ShowDeviceCommand : ICommand
- {
- private Transform showDeviceTransform;
- public ShowDeviceCommand(Transform showDeviceTransform)
- {
- this.showDeviceTransform = showDeviceTransform;
- }
- public void OnExcute()
- {
- this.SendEvent(new ShowDeviceEvent(){ShowDeviceTransform = showDeviceTransform});
- }
- }
|