コード例 #1
0
 private void CreateFolderInNewPrefab(InAudioNode parent)
 {
     InAudioWindowOpener.ShowNewDataWindow((gameObject =>
     {
         var node = AudioNodeWorker.CreateChild(gameObject, parent, AudioNodeType.Folder);
         node.Name += " (External)";
         (node._nodeData as InFolderData).ExternalPlacement = true;
     }));
 }
コード例 #2
0
 private void CreateFolderInNewPrefab(InMusicNode parent)
 {
     InAudioWindowOpener.ShowNewDataWindow((gameObject =>
     {
         var node = MusicWorker.CreateFolder(gameObject, parent);
         node._name += " (External)";
         node._externalPlacement = true;
     }));
 }
コード例 #3
0
 private void CreateFolderInNewPrefab(InAudioEventNode parent)
 {
     InAudioWindowOpener.ShowNewDataWindow((gameObject =>
     {
         InUndoHelper.DoInGroup(() =>
         {
             var node = AudioEventWorker.CreateNode(parent, gameObject, EventNodeType.Folder);
             node.Name += " (External)";
             node.PlacedExternaly = true;
         });
     }));
     isDirty = true;
 }
コード例 #4
0
 protected static void TryOpenIntroductionWindow()
 {
     try
     {
         if (!PlayerPrefs.HasKey("InAudioIntro"))
         {
             PlayerPrefs.SetInt("InAudioIntro", 1);
             InAudioWindowOpener.ShowIntroductionWindow();
         }
         else
         {
             int allowIntro = PlayerPrefs.GetInt("InAudioAllowIntro");
             int haveIntro  = PlayerPrefs.GetInt("InAudioIntro");
             if (allowIntro == 1 && haveIntro == 1)
             {
                 PlayerPrefs.SetInt("InAudioAllowIntro", 0);
                 InAudioWindowOpener.ShowIntroductionWindow();
             }
         }
     }
     catch (Exception)
     {
     }
 }