[Unity project actual combat] 3DRPG game development 06 - enemies and attacks

Import enemy material

RPG Monster Duo PBR Polyart
insert image description here
drags in the enemy. If you feel that his brightness is a bit low, select his body, and you can choose to adjust and modify the value of his material ball metallic alpha. We create a new
insert image description here
enemy script, and all our enemies will mount this script. If we It is hoped that each enemy will mount the navigation component. It is undoubtedly very troublesome to add one. We can use the script to control the mounting of the navigation component. The code

using UnityEngine;
using UnityEngine.AI;

[RequireComponent

Guess you like

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