Esempio n. 1
0
 private void Initialize()
 {
     if (!SteamManager.Initialized)
     {
         Destroy(this);
     }
     else
     {
         SteamManager manager = FindObjectOfType <SteamManager>();
         if ((manager != null) && (manager.GetComponent <SkipRemoveOnSceneSwitch>() == null))
         {
             manager.gameObject.AddComponent <SkipRemoveOnSceneSwitch>();
         }
         if (!initialized)
         {
             initialized = true;