Extending LoadBalancedUtilityAIClient

  • June 23, 2017 at 09:57 #21127
    CrytivoGames
    Participant

    Hello.

    LoadBalancedUtilityAIClient is sealed, but we need to execute some logic in LoadBalancedUtilityAIClient.OnStop and we cannot derive from it.

    Currently we create our AI at runtime like this:

    What is the best approach to do that?

    Thanks

    June 23, 2017 at 11:07 #21129
    Rami
    Keymaster

    Hi CrytivoGames,

    Thanks for your post.

    As you noticed, that class is sealed so you cannot extend it. Instead, you can write your own UtilityAIClient class and then you have full control. You will, however, also need to write your own Component class, if you use Unity components for configuration.

You must be logged in to reply to this topic.