private static void RunSetupImpl() { try { Debug.Log("WwiseUnity: Running install setup..."); AkSceneUtils.CreateNewScene(); WwiseSetupWizard.Setup(); Debug.Log("WwiseUnity: Refreshing asset database."); AssetDatabase.Refresh(); Debug.Log("WwiseUnity: End of setup, exiting Unity."); EditorApplication.Exit(0); } catch (Exception e) { Debug.LogError("WwiseUnity: Exception caught: " + e.ToString()); EditorApplication.Exit(1); } }
public static void RunDemoSceneSetup() { try { Debug.Log("WwiseUnity: Running demo scene setup..."); AkSceneUtils.CreateNewScene(); WwiseSetupWizard.Setup(); AkSceneUtils.OpenExistingScene("Assets/WwiseDemoScene/WwiseDemoScene.unity"); Debug.Log("WwiseUnity: Refreshing asset database."); AssetDatabase.Refresh(); Debug.Log("WwiseUnity: End of demo scene setup, exiting Unity."); EditorApplication.Exit(0); } catch (Exception e) { Debug.LogError("WwiseUnity: Exception caught: " + e.ToString()); EditorApplication.Exit(1); } }