示例#1
0
        IEnumerator Start()
        {
            wv.DoLoading(folderPath);
            yield return(new WaitForSeconds(5));

            server = GetComponent <EmbeddedWebServerComponent>();
            server.AddResource(folderPath, this);

            Debug.Log("Loading complete");
            StartCoroutine(wv.StartWebView(url));
        }
示例#2
0
 void Start()
 {
     server = GetComponent <EmbeddedWebServerComponent>();
     server.AddResource(path, this);
 }
 public virtual void Start()
 {
     hostPath = Application.dataPath + dataPath;
     server   = GetComponent <EmbeddedWebServerComponent>();
     server.AddDirectory(HTTPPath, this);
 }