Esempio n. 1
0
    //*****************************************获取游戏配置信息相关接口*********************************************************
    // 游戏大版本
    public static int GetGameVersion()
    {
#if  UNITY_WP8 && !UNITY_EDITOR
        return(WPSDKHelperScript.Instance().WPGetGameVersion());
#elif UNITY_ANDROID && !UNITY_EDITOR
        //return (int)VERSION.GameVersion;
        string ret = AndroidHelper.platformHelper("getGameVersion");
        return(int.Parse(ret));
#elif UNITY_IPHONE && !UNITY_EDITOR
        return(IOSHelper.Common_GetGameVersion());
#else
        return((int)VERSION.GameVersion);
#endif
    }