Merge pull request #39 from jakobwcrowe/master

Tweezers: Fixed visual bug associated with plucking hairs mid-transition
This commit is contained in:
Jenny Crowe 2022-02-14 11:24:11 -07:00 committed by GitHub
commit 52f722ae0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -204,6 +204,9 @@ namespace RhythmHeavenMania.Games.RhythmTweezers
private void ResetVegetable()
{
// If the tweezers happen to be holding a hair, drop it immediately so it can be destroyed below.
Tweezers.DropHeldHair();
foreach (Transform t in HairsHolder.transform)
{
GameObject.Destroy(t.gameObject);