25 lines
548 B
C#
25 lines
548 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using ZenFulcrum.EmbeddedBrowser;
|
|
|
|
public class test : MonoBehaviour
|
|
{
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
var b = transform.Find("Browser (GUI)").GetComponent<Browser>();
|
|
b.EvalJS("navigator.pfLang = 'zh'");
|
|
b.RegisterFunction("Test", args =>
|
|
{
|
|
|
|
});
|
|
}
|
|
void Test(string str, int i) { }
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|