public static void PlayAnimation(I_EntityInTrigger entity, string animationName) { PlayAnimationEventData data = EventDataFactory.Pop <PlayAnimationEventData>(); data.animation_name = animationName; entity.RaiseEvent(E_EntityInTrigger.PLAY_ANIMATION, data); }
/// <summary> /// 内部触发事件,改变人物状态 /// </summary> public static void ChangeInEntityState(I_EntityInTrigger entity, E_StateId state, bool force = false) { ChangeEntityStateEventData data = EventDataFactory.Pop <ChangeEntityStateEventData>(); data.state_id = state; data.force = force; entity.RaiseEvent(E_EntityInTrigger.CHANGE_STATE, data); }
public void OnInit(I_EntityInTrigger baseEntity) { _baseEntity = baseEntity; }
public void InitOutTrigger(I_Entity trigger, I_EntityInTrigger inTrigger, BaseEntity baseEntity) { _entity = trigger; _inEntity = inTrigger; _baseEntity = baseEntity; }