I'm trying to implement a combatant.Actions.ActionStateChanged delegate, but I don't know how to get the proper parameters for my function. Can somebody help?

Thanks!
  • edited December 2019
    You need a function that takes a combatant as the parameter, e.g.:

    public void ActionStateChanged(Combatant combatant)

    You can add/remove the function to get notified of state changes like this:
    combatant.Actions.ActionStateChanged += ActionStateChanged; // add
    combatant.Actions.ActionStateChanged -= ActionStateChanged; // remove
    Post edited by gamingislove on
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Sign In or Register to comment.