Wywołanie funkcji JavaScript ze skryptów Unity
mergeInto(LibraryManager.library {
Loaded: function()
{
window.CheckLoad();
},
});
/*
Unity C# script
public class blablabla : MonoBehaviour
{
[DllImport("__Internal")]
private static extern void Loaded();
public static void IsLoaded()
{
#if !UNITY_EDITOR && UNITY_WEBGL
Loaded();
#endif
}
void Start()
{
IsLoaded();
}
}*/
Dentetsu