网址判断

  void Awake()
    {
        if (Application.isWebPlayer)
        {
            string thisString = Application.absoluteURL;
            if (thisString.IndexOf("cnblogs") < 0)
            {
                Application.OpenURL("http://www.cnblogs.com/");
            }
        }
    }

 

posted @ 2015-11-24 09:35  哎呦不能错喔  阅读(152)  评论(0编辑  收藏  举报