void Awake() { _instance = this; if (isMobileRuntime == false) { Debug.LogWarning("Due to platform specific NativeDialogs was designed to run only on iOS/Android device. Plugin function call has no effect on other platforms."); return; } #if UNITY_ANDROID _pluginObject = new AndroidJavaObject("ua.org.jeff.unity.nativedialogs.AndroidPlugin"); #endif }