public override void UpdateAction() { base.UpdateAction(); if (EntityUtil.StateActionMacro(Owner, CharacterStateType.E_Hold)) { return; } if (AnimUtil.IsLastFrame(Owner)) { Owner.CurrentAction = PlayerIdleAction.GetInstance(); return; } }
public override void UpdateAction() { base.UpdateAction(); PlayerUtil.CardInterfaceLogicMacro(); if (EntityUtil.DeadLogicMacro(Owner, "PlayerDeadAction")) { return; } if (AnimUtil.IsLastFrame(Owner)) { Owner.CurrentAction = PlayerIdleAction.GetInstance(); return; } }
public override void UpdateAction() { base.UpdateAction(); if (EntityUtil.StateActionMacro(Owner, CharacterStateType.E_Hold)) { return; } Owner.NavAgent.Move(Owner.transform.forward * Isometric.IsometricTileSize.x * 0.5f * Time.deltaTime); if (AnimUtil.IsLastFrame(Owner)) { Owner.CurrentAction = PlayerIdleAction.GetInstance(); return; } }
public override void UpdateAction() { base.UpdateAction(); PlayerUtil.CardInterfaceLogicMacro(); if (EntityUtil.DeadLogicMacro(Owner, "PlayerDeadAction")) { return; } Owner.NavAgent.Move(Owner.transform.forward * Isometric.IsometricTileSize.x * 0.5f * Time.deltaTime); if (AnimUtil.IsLastFrame(Owner)) { Owner.CurrentAction = PlayerIdleAction.GetInstance(); return; } }
public override void UpdateAction() { base.UpdateAction(); if (EntityUtil.StateActionMacro(Owner)) { return; } Owner.NavAgent.Move(Owner.transform.forward * Isometric.IsometricGridSize * Owner.Status.CurrentSpeed * curve.Evaluate(ElapsedTime) * Time.deltaTime + Owner.transform.forward * Mathf.Clamp01(Vector3.Dot(PlayerUtil.GetVelocityInput(), Owner.transform.forward)) * Isometric.IsometricGridSize * Owner.Status.CurrentSpeed * Time.deltaTime); if (AnimUtil.IsLastFrame(Owner)) { Owner.CurrentAction = PlayerIdleAction.GetInstance(); return; } }
// Start is called before the first frame update void Start() { CurrentAction = PlayerIdleAction.GetInstance(); }