Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Feedback Bug Report: OnMouseDown method Active during game pause (Jr. Programmer Pathway)

Discussion in 'Unity Certification' started by tahaalavi, Jul 14, 2023.

  1. tahaalavi


    May 10, 2023
    I have encountered a bug in the Hard solution of "Unit 5" bonus features. The OnMouseDown method continues to function even when the game is paused. This issue allows objects to be destroyed WHILE the game is in pause mode.

    Expected Result: During game pause, the OnMouseDown method should not be active, preventing any interaction or object destruction.

    Code Modification: To resolve this issue, I made the following modification in the relevant scripts
    1) GameManager.cs - Modify the ChangePaused() method to public.
    2) Target.cs - Add another condition as a parameter.

    I kindly request the Unity developers to review this bug report and provide insights to address this issue.

    Attached Files:

    Last edited: Jul 14, 2023