Esempio n. 1
0
    /// <summary>
    /// 设置掉落无信息
    /// </summary>
    public void SetDropItemInfoByDeath(uint heroID, List <DropInfo> drop_list)
    {
        OnSaveDropItemInfo(heroID, drop_list, 2);
        bool             needAddIntera = CheckIsDropItem(heroID);
        GameplayProxy    gameplayProxy = GameFacade.Instance.RetrieveProxy(ProxyName.GameplayProxy) as GameplayProxy;
        SpacecraftEntity spe           = gameplayProxy.GetEntityById <SpacecraftEntity>(heroID) as SpacecraftEntity;

        if (needAddIntera)
        {
            spe.SetDropItemUId(heroID);
            DropItemManager.Instance.CreateDropItemByDeath(heroID, spe);
        }
    }