Hi
Trying to implement a trap in a dungeon, like the Saw,' but I haven't found any examples to do this.
First i try with collider in the saw and add script to the saw to make damage to the character like this
The character die in the 10 hit and is ok, but the ability "Damage Visualization" never active in the character (play mode), this is the configuration on the character
The character have the demo animator from UCC.
I dont know if i missing any configuration or any other step.
I try with de IDamageSource(explosion) but i dont understand to do this
Trying to implement a trap in a dungeon, like the Saw,' but I haven't found any examples to do this.
First i try with collider in the saw and add script to the saw to make damage to the character like this
C#:
private void OnTriggerEnter(Collider other) {
var health = m_Character.GetComponent<Health>();
health.Damage(10);
}
The character have the demo animator from UCC.
I dont know if i missing any configuration or any other step.
I try with de IDamageSource(explosion) but i dont understand to do this