I created an Enemy. Add a collider(trigger is on). Add a Damage script. Add health (deactivate the object if death)
When the character I created triggered by the Enemy, It will give damage to the character and it will show a damage visualization.
When the character was exit triggered by the enemy. no damaging effect and no damage visualization occur.
Here is the problem I need to fix.
While I received damage to the enemy and I killed it then the damage is still going on even I go in another place, remove the damage script in runtime.
When the character I created triggered by the Enemy, It will give damage to the character and it will show a damage visualization.
When the character was exit triggered by the enemy. no damaging effect and no damage visualization occur.
Here is the problem I need to fix.
While I received damage to the enemy and I killed it then the damage is still going on even I go in another place, remove the damage script in runtime.