Beispiel #1
0
    public void Awake()
    {

        if (Application.platform == RuntimePlatform.Android)
        {
#if UNITY_ANDROID
            webView = new WebViewAndroid();
#endif
        }
        else if (Application.platform == RuntimePlatform.IPhonePlayer)
        {
#if UNITY_IPHONE
            webView = new WebViewIOS();
#endif
        }
        else
        {
            webView = new WebViewNull();

        }


        webView.Init(name);

        callback = null;
    }
Beispiel #2
0
    public void Awake()
    {
#if UNITY_EDITOR
        webView = new WebViewNull();
#elif UNITY_IPHONE
        webView = new WebViewIOS();
#elif UNITY_ANDROID
        webView = new WebViewAndroid();
#endif
        webView.Init(name);
        callback = null;
    }
    public void Awake()
    {
        #if UNITY_ANDROID && !UNITY_EDITOR
          webView = new WebViewAndroid();
        #elif UNITY_IPHONE && !UNITY_EDITOR
          webView = new WebViewIOS();
        #else
          webView = new WebViewNull();
        #endif

          webView.Init( name );

          callback = null;
    }
    public void Awake()
    {
        if (Application.platform == RuntimePlatform.Android)
        {
#if UNITY_ANDROID
            webView = new WebViewAndroid();
#endif
        }
        else if (Application.platform == RuntimePlatform.IPhonePlayer)
        {
#if UNITY_IPHONE
            webView = new WebViewIOS();
#endif
        }
        else
        {
            webView = new WebViewNull();
        }


        webView.Init(name);

        callback = null;
    }
Beispiel #5
0
    /*
     * public void CallFromJS( string message )
     * {
     *      Debug.Log( "CallFromJS : " + message );
     * }
     */

    public void setCallback(IWebViewCallback _callback)
    {
        callback = _callback;
    }
Beispiel #6
0
 public void SetCallback(IWebViewCallback callback)
 {
     throw new NotImplementedException();
 }
	/*
	public void CallFromJS( string message )
	{
		Debug.Log( "CallFromJS : " + message );
	}
	*/

	public void setCallback( IWebViewCallback _callback )
	{
		callback = _callback;
	}
Beispiel #8
0
 public void Awake()
 {
     this.webView = new WebViewAndroid();
     this.webView.Init(base.name);
     this.callback = null;
 }