Hey everyone,
I have my battlescene and my turn cycle setup. Now in the playerschoice I want to select one of the enemies. I have an Array of the enemies and select my enemy and execute one of my attacking abilities. Each ability has a Script that has the damage amount of the attack in it. Every enemy has a health Script on it. Now I m stuck in how to manage the whole take damage thing on the selected enemy. I first thought I could call a function Inside the enemy health script depending on which attack I did but this seems not so good because every ability would have to be set inside the enemy health script makeing it very unflexible. Any pointers towards how to manage this situation best a very welcome. Thanks.
↧