示例#1
0
    /// <summary>
    /// Returns the current amount of Tap Points that a user has.
    /// When using Tapjoy Managed currency, the user is determined by the UDID of the device.
    /// This can safely be called after Tap Points data is retrieved from the server.
    /// </summary>
    /// <returns>
    /// A <see cref="System.Int32"/>
    /// </returns>
    public static int QueryTapPoints()
    {
        if (Application.platform == RuntimePlatform.OSXEditor)
        {
            return(0);
        }

        return(TapjoyPlatformPlugin.QueryTapPoints());
    }
示例#2
0
    /// <summary>
    /// Returns the current amount of Tap Points that a user has.
    /// When using Tapjoy Managed currency, the user is determined by the UDID of the device.
    /// This can safely be called after Tap Points data is retrieved from the server.
    /// </summary>
    /// <returns>
    /// A <see cref="System.Int32"/>
    /// </returns>
    public static int QueryTapPoints()
    {
        if (Application.isEditor)
        {
            return(0);
        }

        return(TapjoyPlatformPlugin.QueryTapPoints());
    }