using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using ZenFulcrum.EmbeddedBrowser;
public class Contest : MonoBehaviour {
Browser browser;
// Use this for initialization
void Start () {
browser = GetComponent<Browser>();
//browser.RegisterFunction("dodo", (a) => print("666"));
browser.RegisterFunction("todo", args => { todo(); });
}
// Update is called once per frame
void Update () {
if (Input.GetKeyDown(KeyCode.Q))
{
print("press a Q");
browser.CallFunction("doSome");
}
}
public void todo()
{
print("按钮");
}
}