Esempio n. 1
0
    /// <summary>
    /// 根据神兽id删除神兽
    /// </summary>
    /// <param name="unBeastId"></param>
    public void DelBeast(long unBeastId)
    {
        Beast beastById = this.GetBeastById(unBeastId);

        if (null != beastById)
        {
            Singleton <ClientMain> .singleton.scene.DelRoleFromScene(beastById.Id);

            this.m_dicAllBeastId.Remove(beastById.Id);
            beastById.Dispose();
        }
    }