Enemy animation design
Add a new layer animation, set the weight to 1, and
create an empty state Base State in the new layer by default to realize the monster’s default animation to play Base State. Because Base State is an empty animation, it will find the animation of the previous layer by default, so that Realized the switching of two layer animations, and can also choose to modify the weight
random enemy patrol
Display the range of enemy patrols
Get random moving points, keep the y-axis unchanged, because the ground may be uneven
SamplePosition indicates whether the point is a place allowed by navigation
character attributes
Use ScriptableObject files to store character information, such as maximum blood volume, current blood volume, basic defense, current defense,
instantiate player and enemy attributes