예제 #1
0
    /// <summary>
    /// 访问Npc
    /// </summary>
    void VisitNpc(uint mapId, uint npcId)
    {
        Client.IControllerSystem cs = Client.ClientGlobal.Instance().GetControllerSystem();
        if (cs == null)
        {
            return;
        }

        Client.IController controller = cs.GetActiveCtrl();
        if (controller == null)
        {
            Engine.Utility.Log.Error("IController is null");
            return;
        }

        controller.VisiteNPC(mapId, npcId);
    }
예제 #2
0
    /// <summary>
    /// 氏族领地
    /// </summary>
    /// <param name="caster"></param>
    void onClick_LingDiBtn_Btn(GameObject caster)
    {
        //让大威配到全局表里面,他不配,出问题找大威。
        uint mapId = 2;
        uint clanTerritoryNpcId = 10323;

        Client.IControllerSystem cs = Client.ClientGlobal.Instance().GetControllerSystem();
        if (cs == null)
        {
            return;
        }
        Client.IController controller = cs.GetActiveCtrl();
        if (controller == null)
        {
            Engine.Utility.Log.Error("IController is null");
            return;
        }

        controller.VisiteNPC(mapId, clanTerritoryNpcId, true);
    }