Example #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);
        }