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); }
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); }
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); }
public override void Enter(TimelineObj timelineObj) { SkillLocate.Skill.CreateBuff(timelineObj.ower, timelineObj.ower, addBuff); }
public override void Enter(TimelineObj timelineObj) { SkillLocate.Skill.CreateAoe(timelineObj.ower, addAoe); }
/// <summary> /// 每帧调用 /// </summary> /// <param name="timelineObj"></param> public virtual void Tick(TimelineObj timelineObj) { }
/// <summary> /// 离开时 /// </summary> /// <param name="timelineObj"></param> public virtual void Exit(TimelineObj timelineObj) { }
/// <summary> /// 进入时 /// </summary> /// <param name="timelineObj"></param> public abstract void Enter(TimelineObj timelineObj);
public override void Exit(TimelineObj timelineObj) { }
public override void Enter(TimelineObj timelineObj) { }