コード例 #1
0
ファイル: Jiver.cs プロジェクト: streetlab/LiveBall
    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);
    }
コード例 #2
0
ファイル: Jiver.cs プロジェクト: voxlovemy/jiver-unity-sample
    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;
    }