public void callFunction(FuncType type)//only for android
        {
#if UNITY_ANDROID && !UNITY_EDITOR
            QuickUnitySupportAndroid androidSupport = QuickUnitySupportAndroid.getInstance();
            androidSupport.callFunc(type);
#endif
        }
        public int hideToolBar()
        {
#if UNITY_ANDROID && !UNITY_EDITOR
            QuickUnitySupportAndroid androidSupport = QuickUnitySupportAndroid.getInstance();
            return(androidSupport.callFunc(FuncType.QUICK_SDK_FUNC_TYPE_HIDE_TOOLBAR));
#else
            return(0);
#endif
        }
        public int showToolBar(ToolbarPlace place)//1左上,2右上,3左中,4右中,5左下,6右下
        {
#if UNITY_ANDROID && !UNITY_EDITOR
            QuickUnitySupportAndroid androidSupport = QuickUnitySupportAndroid.getInstance();
            return(androidSupport.callFunc(FuncType.QUICK_SDK_FUNC_TYPE_SHOW_TOOLBAR));
#else
            return(0);
#endif
        }
        public int enterBBS()//BBS
        {
#if UNITY_ANDROID && !UNITY_EDITOR
            QuickUnitySupportAndroid androidSupport = QuickUnitySupportAndroid.getInstance();
            return(androidSupport.callFunc(FuncType.QUICK_SDK_FUNC_TYPE_ENTER_BBS));
#else
            return(0);
#endif
        }
Beispiel #5
0
 private int enterBBS()        //BBS
 {
                 #if UNITY_IOS && !UNITY_EDITOR
     return(quicksdk_nativeEnterBBS() == -100?0:1);
                 #elif UNITY_ANDROID && !UNITY_EDITOR
     QuickUnitySupportAndroid androidSupport = QuickUnitySupportAndroid.getInstance();
     return(androidSupport.callFunc(FuncType.QUICK_SDK_FUNC_TYPE_ENTER_BBS));
                 #else
     return(0);
                 #endif
 }
Beispiel #6
0
 public int enterUserCenter()         //用户中心
 {
                 #if UNITY_IOS && !UNITY_EDITOR
     return(quicksdk_nativeEnterUserCenter() == -100?0:1);
                 #elif UNITY_ANDROID && !UNITY_EDITOR
     QuickUnitySupportAndroid androidSupport = QuickUnitySupportAndroid.getInstance();
     return(androidSupport.callFunc(FuncType.QUICK_SDK_FUNC_TYPE_ENTER_USER_CENTER));
                 #else
     return(0);
                 #endif
 }
Beispiel #7
0
        public void callFunction(FuncType type)
        {
#if UNITY_IOS && !UNITY_EDITOR
            switch (type)
            {
            case FuncType.QUICK_SDK_FUNC_TYPE_ENTER_BBS:
                quicksdk_nativeEnterBBS();
                return;

            case FuncType.QUICK_SDK_FUNC_TYPE_ENTER_USER_CENTER:
                quicksdk_nativeEnterUserCenter();
                return;

            case FuncType.QUICK_SDK_FUNC_TYPE_SHOW_TOOLBAR:
                quicksdk_nativeShowToolBar(3);
                return;

            case FuncType.QUICK_SDK_FUNC_TYPE_HIDE_TOOLBAR:
                quicksdk_nativeHideToolBar();
                return;

            case FuncType.QUICK_SDK_FUNC_TYPE_PAUSED_GAME:
                quicksdk_nativePausedGame();
                return;

            case FuncType.QUICK_SDK_FUNC_TYPE_ENTER_CUSTOMER_CENTER:
                quicksdk_nativeEnterCustomerCenter();
                return;

            default:
                return;
            }
#elif UNITY_ANDROID && !UNITY_EDITOR
            QuickUnitySupportAndroid androidSupport = QuickUnitySupportAndroid.getInstance();
            androidSupport.callFunc(type);
#endif
        }