示例#1
0
 /// <summary>
 /// Not standard for a Singleton but allows you to delete the singleton to create an entirely new single instance.
 /// </summary>
 public static void Destroy()
 {
     instance = null;
 }
 /// <summary>
 /// Starts the game when "Play Game" button is clicked.
 /// </summary>
 public void PlayGameClick()
 {
     Maintained.Destroy();
     Application.LoadLevel("Player Info");
 }