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; })); }
private void CreateFolderInNewPrefab(InMusicNode parent) { InAudioWindowOpener.ShowNewDataWindow((gameObject => { var node = MusicWorker.CreateFolder(gameObject, parent); node._name += " (External)"; node._externalPlacement = true; })); }
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; }
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) { } }