1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- using GameFramework;
- using GameFramework.Event;
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityGameFramework.Runtime;
- namespace MetaClient
- {
- /// <summary>
- /// 自定义角色面部事件
- /// </summary>
- public class CustomRoleBodyEventArgs : GameEventArgs
- {
- /// <summary>
- /// 打开界面成功事件编号。
- /// </summary>
- public static readonly int EventId = typeof(CustomRoleBodyEventArgs).GetHashCode();
- /// <summary>
- /// 获取打开界面成功事件编号。
- /// </summary>
- public override int Id
- {
- get
- {
- return EventId;
- }
- }
- public EditableBodyPart Part { get; set; }
- public Vector3 ChangeValue { get; set; }
- public static CustomRoleBodyEventArgs Create(EditableBodyPart part, Vector3 value)
- {
- CustomRoleBodyEventArgs customRoleFaceEvent = ReferencePool.Acquire<CustomRoleBodyEventArgs>();
- customRoleFaceEvent.Part = part;
- customRoleFaceEvent.ChangeValue = value;
- return customRoleFaceEvent;
- }
- public override void Clear()
- {
- }
- }
- }
|