// Ensure that the instance is destroyed when the game is stopped in the editor.
 void OnApplicationQuit()
 {
     sharedInstance = null;
 }
 // Ensure that the instance is destroyed when the game is stopped in the editor.
 void OnApplicationQuit()
 {
     sharedInstance = null;
 }