예제 #1
0
        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);
        }
예제 #2
0
        /// <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);
        }
예제 #3
0
 public void OnInit(I_EntityInTrigger baseEntity)
 {
     _baseEntity = baseEntity;
 }
예제 #4
0
 public void InitOutTrigger(I_Entity trigger, I_EntityInTrigger inTrigger, BaseEntity baseEntity)
 {
     _entity     = trigger;
     _inEntity   = inTrigger;
     _baseEntity = baseEntity;
 }