[Unity project actual combat] 3DRPG game development 07 - other detailed design

Enemy animation design

Add a new layer animation, set the weight to 1, and
insert image description here
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
insert image description here

random enemy patrol

Display the range of enemy patrols
insert image description here
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
insert image description here

character attributes

Use ScriptableObject files to store character information, such as maximum blood volume, current blood volume, basic defense, current defense,
insert image description here
instantiate player and enemy attributes

Guess you like

Origin blog.csdn.net/qq_36303853/article/details/130448456