void MoveAction() { Vector3 tp = GameCommon.GetWorldPos(path[0]); float dis = Vector2.Distance(parent.transform.position, tp); if (dis <= parent.GetMoveSpeed() * Time.deltaTime) { SetPathPos(); if (path.Count <= 0) { parent.StopAction(); } else { parent.Move(path[0]); } return; } else { parent.Move(path[0]); parent.SetAnimatorState(InGameBaseCharacter.AnimatorState.Run, parent.GetMoveSpeed() * 0.6f); } }