Emerald AI
A demo scene named "USK & Emerald AI" is located in the (Demo Files/Scenes/Integrations/Emerald AI) folder.
​
How to activate:
  1. 1.
    Download the asset and then enable the integration with it in the (Window -> USK -> Integrations Manager).
  2. 2.
    Add the following code to the EmeraldAIPlayerDamage script.
#if USK_EMERALDAI_INTEGRATION
DamageUSKCharacter(DamageAmount);
#endif
​
#if USK_EMERALDAI_INTEGRATION
void DamageUSKCharacter(int value)
{
if (GetComponent<GercStudio.USK.Scripts.Controller>() != null)
{
var controller = GetComponent<GercStudio.USK.Scripts.Controller>();
controller.Damage(value);
}
}
#endif
​
How to use:
  1. 1.
    Follow the Emerald manual to add enemies to the scene, then add a USK character there.
  2. 2.
    Make sure your enemies have the correct Detection Layers.
Copy link