::The Destroy in MainMenu scripts is unnecessary as it only deals with destroying DontDestroyOnLoad(gameObject);
and not other gameobjects like collectibles.
If you want the ability display or shard display to finish even while pausing,
Change the WaitForSeconds()
to WaitForSecondsRealtime()
in the respective scripts. This will allow the pickup display to continue as per normal without being affected by the timescale.
If you want the Pause menu to overlay pickup display,
Go to the Canvas Prefab > Canvas Property in the inspector, and set the Sorting order to [1] or higher.