void CreateRole()
    {
        string     strInputName = GetInputName();
        GameObject go           = (GameObject)mhtWindow[WCREATER_CONTROL_ENUM.WCHC_INPUTNAME];

        if (null != go)
        {
            NFNetController xNet = NFNetController.Instance;
            if (null != xNet)
            {
                xNet.mxNetSender.RequireCreateRole(xNet.strAccount, strInputName, 0, 0, xNet.nServerID);
            }
        }
    }
Example #2
0
    public void SetMainRoleAgentState(bool bActive)
    {
        NFNetController xNet = NFNetController.Instance;

        if (null == xNet)
        {
            return;
        }

        if (!mhtObject.ContainsKey(xNet.xMainRoleID))
        {
            return;
        }

        GameObject xGameObject = (GameObject)mhtObject[xNet.xMainRoleID];

        if (null == xGameObject)
        {
            return;
        }
    }