单机版网页启动程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

22 lines
560 B

using UnityEngine;
namespace ZenFulcrum.EmbeddedBrowser {
/**
* Hooks to ensure that zfb gets shut down on app (or playmode) exit.
* (This used to be used only for builds, but now that we can cleanly shut down the browser
* system after every playmode run it's used in the Editor too.)
*/
class StandaloneShutdown : MonoBehaviour {
public static void Create() {
var go = new GameObject("ZFB Shutdown");
go.AddComponent<StandaloneShutdown>();
DontDestroyOnLoad(go);
}
public void OnApplicationQuit() {
BrowserNative.UnloadNative();
}
}
}