Exemple #1
0
        public override void Exit(TimelineObj timelineObj)
        {
            if (timelineObj.ower == null)
            {
                return;
            }
            Entity entity = ECSLocate.ECS.GetEntity(timelineObj.ower.EntityId);

            if (entity == null)
            {
                return;
            }
            AnimCom animCom = entity.GetCom <AnimCom>();

            animCom.SetReqAnim(AnimSystem.IdleState);
        }
Exemple #2
0
        public override void Enter(TimelineObj timelineObj)
        {
            if (timelineObj.ower == null)
            {
                return;
            }
            Entity entity = ECSLocate.ECS.GetEntity(timelineObj.ower.EntityId);

            if (entity == null)
            {
                return;
            }
            AnimCom animCom = entity.GetCom <AnimCom>();

            animCom.SetReqAnim(animName);
        }
Exemple #3
0
        public override void Tick(TimelineObj timelineObj)
        {
            if (timelineObj.ower == null)
            {
                return;
            }
            Entity entity = ECSLocate.ECS.GetEntity(timelineObj.ower.EntityId);

            if (entity == null)
            {
                return;
            }
            TransformCom transformCom = entity.GetCom <TransformCom>();
            float        xValue       = (transformCom.CurrDir == DirType.Right ? 1 : -1) * movePos.x;
            Vector3      moveDelta    = new Vector3(xValue, movePos.y, 0) * Time.deltaTime;

            entity.MovePos(moveDelta);
        }
Exemple #4
0
 public override void Enter(TimelineObj timelineObj)
 {
     SkillLocate.Skill.CreateBuff(timelineObj.ower, timelineObj.ower, addBuff);
 }
Exemple #5
0
 public override void Enter(TimelineObj timelineObj)
 {
     SkillLocate.Skill.CreateAoe(timelineObj.ower, addAoe);
 }
Exemple #6
0
 /// <summary>
 /// 每帧调用
 /// </summary>
 /// <param name="timelineObj"></param>
 public virtual void Tick(TimelineObj timelineObj)
 {
 }
Exemple #7
0
 /// <summary>
 /// 离开时
 /// </summary>
 /// <param name="timelineObj"></param>
 public virtual void Exit(TimelineObj timelineObj)
 {
 }
Exemple #8
0
 /// <summary>
 /// 进入时
 /// </summary>
 /// <param name="timelineObj"></param>
 public abstract void Enter(TimelineObj timelineObj);
Exemple #9
0
 public override void Exit(TimelineObj timelineObj)
 {
 }
Exemple #10
0
 public override void Enter(TimelineObj timelineObj)
 {
 }