DownEventArgs.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using GameFramework;
  2. using GameFramework.Event;
  3. using System.Collections;
  4. using System.Collections.Generic;
  5. using UnityEngine;
  6. using UnityGameFramework.Runtime;
  7. namespace MetaClient
  8. {
  9. /// <summary>
  10. /// 自定义角色面部事件
  11. /// </summary>
  12. public class CustomRoleFaceEventArgs : GameEventArgs
  13. {
  14. /// <summary>
  15. /// 打开界面成功事件编号。
  16. /// </summary>
  17. public static readonly int EventId = typeof(CustomRoleFaceEventArgs).GetHashCode();
  18. /// <summary>
  19. /// 获取打开界面成功事件编号。
  20. /// </summary>
  21. public override int Id
  22. {
  23. get
  24. {
  25. return EventId;
  26. }
  27. }
  28. public EditableFacePart Part { get; set; }
  29. public Vector3 ChangeValue { get; set; }
  30. public static CustomRoleFaceEventArgs Create(EditableFacePart part, Vector3 value)
  31. {
  32. CustomRoleFaceEventArgs customRoleFaceEvent = ReferencePool.Acquire<CustomRoleFaceEventArgs>();
  33. customRoleFaceEvent.Part = part;
  34. customRoleFaceEvent.ChangeValue = value;
  35. return customRoleFaceEvent;
  36. }
  37. public override void Clear()
  38. {
  39. }
  40. }
  41. }