Exemplo n.º 1
0
 void OnLootCreature10(C2G.LootCreature10 packet, C2G.LootCreature10Ack ack)
 {
     Debug.Log("OnLootCreature10");
     Network.PlayerInfo.UseGoods(m_ItemLoot.Price);
     ack.loots.ForEach(c => Network.Instance.LootCreature(c));
     Popup.Instance.Show(ePopupMode.LootCharacter10, ack, this);
     GameMain.Instance.UpdatePlayerInfo();
 }
Exemplo n.º 2
0
    override public void SetParams(bool is_new, object[] parms)
    {
        base.SetParams(is_new, parms);
        _ack = parms[0] as C2G.LootCreature10Ack;
        if (parms.Length >= 2)
        {
            m_StoreItem = parms[1] as StoreItem;
        }
        else
        {
            m_StoreItem = null;
        }

        if (is_new)
        {
            ShowImmediately = false;
            Init();
        }
        else
        {
            ShowImmediately  = true;
            showNextItemTime = Time.time + delay;
        }
    }