public void OpenRauderWeb() { #if UNITY_IPHONE //InitPosition(iPhoneSettings.generation); InitPositionByScale(); WebMediator.LoadUrl(url); WebMediator.SetMargin(left, top, right, bottom); WebMediator.Show(); #elif UNITY_ANDROID if (isActivityWebview) { InitPosition(); WebMediator.LoadUrl(url); WebMediator.SetMargin(left, top, right, bottom); WebMediator.Show(); } else { WebMediator.ShowWebView(url); } #endif #if UNITY_IPHONE DefaultPanel.SetActive(false); NoticePanel.SetActive(false); RaiderPanel.SetActive(true); #elif UNITY_ANDROID DefaultPanel.SetActive(false); NoticePanel.SetActive(false); RaiderPanel.SetActive(false); #endif //Debug.Log("Enter OpenWeb!"); //Debug.Log("In OpenWeb : url="+url); //Debug.Log("In OpenWeb : top="+top+" ; bottom="+bottom+" ; left="+left+" ; right="+right); }
public void OpenPublicNoticeWeb() { /* * WebViewHeightType hType = WebViewHeightType.HEIGHT_1136; #if UNITY_IPHONE * hType = GetCurrentHeightTyp(iPhoneSettings.generation); #elif UNITY_ANDROID * //hType = GetCurrentHeightTyp(); #endif * Rect rt = GetWebViewRect(hType, WebViewType.NOTICE); #if UNITY_IPHONE * WebMediator.LoadUrl(url); * WebMediator.SetMargin((int)rt.xMin, (int)rt.yMin, (int)rt.width, (int)rt.height); * WebMediator.Show(); #elif UNITY_ANDROID * if(isActivityWebview) * { * WebMediator.LoadUrl(url); * WebMediator.SetMargin((int)rt.xMin, (int)rt.yMin, (int)rt.width, (int)rt.height); * WebMediator.Show(); * } * else * { * WebMediator.ShowWebView(url); * } #endif */ #if UNITY_IPHONE //InitPosition(iPhoneSettings.generation); InitPositionByScale(); WebMediator.LoadUrl(url); WebMediator.SetMargin(left, top, right, bottom); WebMediator.Show(); #elif UNITY_ANDROID if (isActivityWebview) { InitPosition(); WebMediator.LoadUrl(url); WebMediator.SetMargin(left, top, right, bottom); WebMediator.Show(); } else { WebMediator.ShowWebView(url); } #endif #if UNITY_IPHONE NoticePanel.SetActive(true); DefaultPanel.SetActive(false); RaiderPanel.SetActive(false); #elif UNITY_ANDROID DefaultPanel.SetActive(false); NoticePanel.SetActive(false); RaiderPanel.SetActive(false); #endif }
public void OpenDefaultWeb() { left = 0; right = 0; bottom = 0; #if UNITY_IPHONE if (Screen.height > 1136) { top = 132; } else { top = 66; } WebMediator.LoadUrl(url); WebMediator.SetMargin(left, top, right, bottom); WebMediator.Show(); #elif UNITY_ANDROID if (isActivityWebview) { top = 66; WebMediator.LoadUrl(url); WebMediator.SetMargin(left, top, right, bottom); WebMediator.Show(); } else { WebMediator.ShowWebView(url); } #endif #if UNITY_IPHONE DefaultPanel.SetActive(true); NoticePanel.SetActive(false); RaiderPanel.SetActive(false); #elif UNITY_ANDROID DefaultPanel.SetActive(false); NoticePanel.SetActive(false); RaiderPanel.SetActive(false); #endif }