Ejemplo n.º 1
0
        public static void init()
        {
            if (_instance == null)
            {
                _instance = new GameSdkMgr();
                switch (Globle.QSMY_SDK_Index)
                {
                case ENUM_SDK_PLATFORM.QISJ_QUICK:
                    m_sdk = new GameSdk_quick();
                    break;

                case ENUM_SDK_PLATFORM.QISJ_RYJTDREAM:
                    m_sdk = new GameSdk_ryjtDream();
                    break;

                case ENUM_SDK_PLATFORM.DL_SDK:
                    m_sdk = new GameSdk_DL();
                    break;
                }
            }
        }
Ejemplo n.º 2
0
        public static void init()
        {
            bool flag = GameSdkMgr._instance == null;

            if (flag)
            {
                GameSdkMgr._instance = new GameSdkMgr();
                ENUM_SDK_PLATFORM qSMY_SDK_Index = Globle.QSMY_SDK_Index;
                if (qSMY_SDK_Index != ENUM_SDK_PLATFORM.QISJ_QUICK)
                {
                    if (qSMY_SDK_Index == ENUM_SDK_PLATFORM.QISJ_RYJTDREAM)
                    {
                        GameSdkMgr.m_sdk = new GameSdk_ryjtDream();
                    }
                }
                else
                {
                    GameSdkMgr.m_sdk = new GameSdk_quick();
                }
            }
        }