Esempio n. 1
0
    void ClickChallenge()
    {
        if (null != MenuOp)
        {
            MenuOp.SetActive(false);
        }

        Obj_MainPlayer mainPlayer = Singleton <ObjManager> .Instance.MainPlayer;

        if (null == mainPlayer)
        {
            return;
        }
        if (mainPlayer.IsInJianYu())
        {
            mainPlayer.SendNoticMsg(false, "#{2216}");
            return;
        }

        if (GameManager.gameManager.RunningScene != (int)Games.GlobeDefine.GameDefine_Globe.SCENE_DEFINE.SCENE_WUDAOZHIDIAN)
        {
            string str = StrDictionary.GetClientDictionaryString("#{5043}");
            MessageBoxLogic.OpenOKCancelBox(str, "", SendChallenge);
        }
    }