Flatfoot-Entertainment / ProjectShowoff

This is the repo for the yet unnamed Project Showoff
0 stars 0 forks source link

If items are made of multiple children, they don't get destroyed as a whole #34

Open TobiasNienhaus opened 3 years ago

TobiasNienhaus commented 3 years ago

This also messes with LeanPool, as it complains that things not spawned with LeanPool are destroyed.

TobiasNienhaus commented 3 years ago

I made an attempted fix, but I don't know if it works yet

https://github.com/Flatfoot-Entertainment/ProjectShowoff/blob/528eec57a7e3123ceb804f6ced6f69df22200175/ProjectShowoff/Assets/Scripts/LeanPoolDestructionTrigger.cs#L13-L20

This maybe fixes it in some cases. This definitely is not completely fixed yet.

TobiasNienhaus commented 3 years ago

btw, nice formatting GitHub