med-material / Whack_A_Mole_VR

Whack-A-Mole in VR
MIT License
3 stars 15 forks source link

Bug fixed : WallManager: Mole states are not reset when game stops #222

Closed lucasmnt closed 1 year ago

lucasmnt commented 1 year ago

Bug fixed thanks to the adding of meshMaterial.mainTexture = textureDisabled; code line in PlayReset( ) function of the diskMole script.

The problem was due to the texture of the mole not updating when the game was reset. Now it should work as intended.

Before the bug fix : (circle still appearing after stopping the game)

bugnotfixed

After the bug fix : (circle disappearing after stopping the game)

bugFixMoleNotDisappearing