示例#1
0
    public override void Interact()
    {
        // Check for Loot and add to party.
        if (loot != null)
        {
            Party.AddMoney(loot.Money);
            Party.AddItems(loot.items);

            // Loot is gone, set to null.
            loot = null;
        }

        base.Interact();

        if (cbContainerChanged != null)
        {
            cbContainerChanged(this);
        }
    }