Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        string serverUrl = "127";

#if UNITY_EDITOR
#else
        HwAdsInterface.InitSdk(serverUrl);
#endif
    }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        int serverUrl = 127;

// #if UNITY_EDITOR

// #else
        HwAdsInterface.InitSdk(serverUrl);
// #endif
    }
Exemplo n.º 3
0
    public void InterCallBack(string msg)
    {
        Debug.Log("receive inter call back msg:" + msg);
        bool bl = false;

        if (msg == "true")
        {
            bl = true;
        }
        if (HwAdsInterface.interOnCloseEvent != null)
        {
            HwAdsInterface.interOnCloseEvent();
        }
    }
Exemplo n.º 4
0
    public void RewardCallBack(string msg)
    {
        Debug.Log("receive reward call back msg:" + msg);
        bool bl = false;

        if (msg == "true")
        {
            bl = true;
        }
        if (HwAdsInterface.rewardOnCloseEvent != null)
        {
            HwAdsInterface.rewardOnCloseEvent(bl);
        }
    }
Exemplo n.º 5
0
 public void RewardShow()
 {
     Debug.Log("reward show click");
     rewardAction = ActionReward;
     HwAdsInterface.unityShowRewardAd("test", rewardAction);
 }
Exemplo n.º 6
0
 public void InterShow()
 {
     Debug.Log("inter show click");
     HwAdsInterface.unityShowInterAd();
 }
Exemplo n.º 7
0
 public bool isShowBanner()
 {
     return(HwAdsInterface.unityIsBannerLoaded());
 }
Exemplo n.º 8
0
 public void BannerHide()
 {
     HwAdsInterface.unityHideBannerAd();
 }
Exemplo n.º 9
0
    //关于banner//关于inter
//关于reward
//关于内购打点
//关于sdk版本号
//关于上传sdk日志
//自己根据需要选择调用不同的方法--HwAdsInterface类中
    public void BannerShow()
    {
        HwAdsInterface.unityShowBannerAd();
    }