private static JiverAdapter GetInstance() { if (instance == null) { #if UNITY_EDITOR Debug.Log("JIVER on Editor."); instance = new JiverDummyImpl(); dummyMessageTimer = 0; #elif UNITY_IOS Debug.Log("JIVER on iOS."); instance = new JiveriOSImpl(); #elif UNITY_ANDROID Debug.Log("JIVER on Android."); instance = new JiverAndroidImpl(); #else Debug.Log("JIVER on unknown platform."); instance = new JiverDummyImpl(); dummyValue = 0; #endif } return(instance); }
private static JiverAdapter GetInstance() { if (instance == null) { #if UNITY_EDITOR Debug.Log("JIVER on Editor."); instance = new JiverDummyImpl(); dummyMessageTimer = 0; #elif UNITY_IOS Debug.Log("JIVER on iOS."); instance = new JiveriOSImpl(); #elif UNITY_ANDROID Debug.Log("JIVER on Android."); instance = new JiverAndroidImpl(); #else Debug.Log("JIVER on unknown platform."); instance = new JiverDummyImpl(); dummyValue = 0; #endif } return instance; }