EnemyAI.cs
You can find this script in Assets > CowsinsAI > Scripts
Public Variables
Name - What name will display after death
Max Health - What health the AI will max out at
Max Shield - What shield the AI will max out at
Show UI - Boolean to where a health / shield UI should display or not
Health Slider - Slider gameObject that needs to be dragged in from the world to display the health of the AI
Shield Slider - Slider gameObject that needs to be dragged in from the world to display the shield of the AI
Health Color - What color the Health Slider will adopt in play mode
Health Color - What color the Shield Slider will adopt in play mode
Damage Pop Up - The graphics of the damage taken on the AI that will pop up when it's taken damage
X Variation - How random the text will display horizontally (adjust heavily to preference)
Hidden Variables
Health - What health the AI currently has in play mode
Shield - What shield the AI currently has in play mode
UI - This will automatically be set on play
Cai - This will be automatically be set on play (reference to the Cowsins AI script)
Animator - This will be automatically be set on play (reference to the Animator)
Agent - This will be automatically be set on play (reference to the NavMeshAgent)
Last updated