Ingen beskrivning
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

AxisEventData.cs 684B

12345678910111213141516171819202122232425
  1. namespace UnityEngine.EventSystems
  2. {
  3. /// <summary>
  4. /// Event Data associated with Axis Events (Controller / Keyboard).
  5. /// </summary>
  6. public class AxisEventData : BaseEventData
  7. {
  8. /// <summary>
  9. /// Raw input vector associated with this event.
  10. /// </summary>
  11. public Vector2 moveVector { get; set; }
  12. /// <summary>
  13. /// MoveDirection for this event.
  14. /// </summary>
  15. public MoveDirection moveDir { get; set; }
  16. public AxisEventData(EventSystem eventSystem)
  17. : base(eventSystem)
  18. {
  19. moveVector = Vector2.zero;
  20. moveDir = MoveDirection.None;
  21. }
  22. }
  23. }