예제 #1
0
 void Start()
 {
     if (Instance != null && Instance != this)
     {
         Destroy(gameObject);
     }
     else
     {
         Instance = this;
     }
     cardServiceInstance.BuildData();
     progressServiceInstance.BuildDataBase();
     settingsServiceInstance.MasterMixer = Resources.Load("Audio/MasterMixer") as AudioMixer;
     settingsServiceInstance.InitializeVolume();
     DontDestroyOnLoad(gameObject);
     if (!(SceneManager.GetActiveScene().name == "TestScene"))
     {
         SceneManager.LoadScene("Main Menu");
     }
 }