CustomRoleBodyEventArgs.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 CustomRoleBodyEventArgs : GameEventArgs
  13. {
  14. /// <summary>
  15. /// 打开界面成功事件编号。
  16. /// </summary>
  17. public static readonly int EventId = typeof(CustomRoleBodyEventArgs).GetHashCode();
  18. /// <summary>
  19. /// 获取打开界面成功事件编号。
  20. /// </summary>
  21. public override int Id
  22. {
  23. get
  24. {
  25. return EventId;
  26. }
  27. }
  28. public ECustomStyple Type { get; set; }
  29. public int Part { get; set; }
  30. public Vector3 ChangeValue { get; set; }
  31. public static CustomRoleBodyEventArgs Create(ECustomStyple type,int part, Vector3 value)
  32. {
  33. CustomRoleBodyEventArgs customRoleFaceEvent = ReferencePool.Acquire<CustomRoleBodyEventArgs>();
  34. customRoleFaceEvent.Type = type;
  35. customRoleFaceEvent.Part = part;
  36. customRoleFaceEvent.ChangeValue = value;
  37. return customRoleFaceEvent;
  38. }
  39. public override void Clear()
  40. {
  41. }
  42. }
  43. }