Import enemy material
RPG Monster Duo PBR Polyart
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
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