From 5b25efc4e8e8b5d3fc0c8d78c7680d00e08ff451 Mon Sep 17 00:00:00 2001 From: Koji Nakamaru Date: Mon, 19 Oct 2020 18:04:32 +0900 Subject: [PATCH] moved some initialization into Awake(). --- plugins/WebViewObject.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/plugins/WebViewObject.cs b/plugins/WebViewObject.cs index 8ed174fa..edd74391 100644 --- a/plugins/WebViewObject.cs +++ b/plugins/WebViewObject.cs @@ -56,8 +56,8 @@ public class WebViewObject : MonoBehaviour Callback onLoaded; Callback onHooked; bool visibility; - bool alertDialogEnabled = true; - bool scrollBounceEnabled = true; + bool alertDialogEnabled; + bool scrollBounceEnabled; int mMarginLeft; int mMarginTop; int mMarginRight; @@ -93,6 +93,12 @@ void OnApplicationPause(bool paused) webView.Call("OnApplicationPause", paused); } + void Awake() + { + alertDialogEnabled = true; + scrollBounceEnabled = true; + } + void Update() { if (webView == null)