Ejemplo n.º 1
0
 public static Baidu Instance()
 {
     if (_instance == null)
     {
         _instance = new Baidu();
         _instance.preInitBaidu();
     }
     return(_instance);
 }
Ejemplo n.º 2
0
		public static Baidu Instance()
	    {
	        if(_instance == null)
	        {
	            _instance = new Baidu();
				_instance.preInitBaidu ();
	        }
	        return _instance;
	    }
Ejemplo n.º 3
0
 public static void onBaiduEventCallBack(string adtype, string eventName, string msg)
 {
     //   Debug.Log("c# receive callback " + adtype + "  " + eventName + "  " + msg);
     if (adtype == "banner")
     {
         Baidu.Instance().bannerEventHandler(eventName, msg);
     }
     if (adtype == "interstitial")
     {
         Baidu.Instance().interstitialEventHandler(eventName, msg);
     }
     else if (adtype == "video")
     {
         Baidu.Instance().videoEventHandler(eventName, msg);
     }
 }