Exemplo n.º 1
0
        /// <summary>
        /// Main function which should be used to get the HelpshiftSdk instance.
        /// </summary>
        /// <returns>Singleton HelpshiftSdk instance</returns>
        public static HelpshiftSdk getInstance()
        {
            if (instance == null)
            {
                instance = new HelpshiftSdk();
#if UNITY_IOS
                nativeSdk = new HelpshiftiOS();
#elif UNITY_ANDROID
                nativeSdk = new HelpshiftAndroid();
#endif
            }
            return(instance);
        }
        /// <summary>
        /// Main function which should be used to get the HelpshiftSdk instance.
        /// </summary>
        /// <returns>Singleton HelpshiftSdk instance</returns>
        public static HelpshiftSdk GetInstance()
        {
#if UNITY_IOS || UNITY_ANDROID
            if (instance == null)
            {
                instance = new HelpshiftSdk();
#if UNITY_IOS
                nativeSdk = new HelpshiftXiOS();
#elif UNITY_ANDROID
                nativeSdk = new HelpshiftXAndroid();
#endif
            }
            return(instance);
#else
            return(null);
#endif
        }