public static void Init() { //Do nothing if Manager exists if (s_portalManager == null) { s_portalManager = new AkPortalManager(); s_portalManager.Populate(); //Register the update function to be called at each frame UnityEditor.EditorApplication.update += s_portalManager.UpdateEnvironments; } //Unregister in case we were registered UnityEditor.EditorApplication.update -= Init; }
static public void Init() { //Do nothing if Manager exists if(s_portalManager == null) { s_portalManager = new AkPortalManager(); s_portalManager.Populate(); //Register the update function to be called at each frame EditorApplication.update += s_portalManager.UpdateEnvironments; } //Unregister in case we were registered EditorApplication.update -= Init; }