private void Awake() { if (!isInit) { #if UNITY_ANDROID openInstall = new AndroidOpenInstall(); #elif UNITY_IPHONE openInstall = new IOSOpenInstallImpl(); #else openInstall = new DefaultOpenInstall(); #endif isInit = true; } if (instance != null) { Destroy(instance); } instance = this; DontDestroyOnLoad(instance); }