Ejemplo n.º 1
0
    /// <summary>
    /// Returns whether the ad texture has downloaded or not
    /// </summary>
    /// <returns><c>true</c> if is ad ready the specified jsonFileId wantedSlotInt; otherwise, <c>false</c>.</returns>
    /// <param name="jsonFileId">JSON file ID</param>
    /// <param name="wantedSlotInt">Slot int</param>
    public static bool IsAdReady(int jsonFileId, int wantedSlotInt)
    {
                #if ias
        AdData returnValue = staticRef.GetAdData(jsonFileId, wantedSlotInt);

        if (returnValue != null)
        {
            return(returnValue.isTextureReady);
        }
        else
        {
            return(false);
        }
                #else
        return(false);
                #endif
    }