I am making 2D RPG. A combatant in my game has 2 prefabs, front and back, where front is for enemy and back is for player and ally, just like pokemon battle.
The conditional prefab can only check status and object variable, it cannot check which faction the combatant belongs to. Does that mean I have to change the object variable in a battle start event?
Btw, do I need to set object variable in all prefabs or just in the main prefab? Eg. only set variable in front prefab, when the combatant changes to back prefab, the object variable will still work or not?
The system you said may not work in this case. Or do I misunderstand something?