luturol / my-first-game-jam-winter-2020

Survive the night is a Enfos like game made with Unity
https://luturol.itch.io/survive-the-night
0 stars 0 forks source link

Clones from Treant doesn't has a Health Bar when generated from script #14

Closed luturol closed 4 years ago

luturol commented 4 years ago

The first Treant has a Health bar, but the others don't have until the first one is destroyed. When the first one is destroyed, then the next one generated will have.

luturol commented 4 years ago

With the help from Sid Makes Games we could solve this issue!!! Never trust a Singleton

This commit solved