Пример #1
0
        void MonitorInventory(object sender, InventoryChangedEventArgs e)
        {
            Player parent = (sender as Inventory).Parent as Player;

            if (parent == null)
            {
                return;
            }
            parent.CancelTrade();
        }
Пример #2
0
        void MonitorInventory(object sender, InventoryChangedEventArgs e)
        {
            Player parent = (sender as Inventory).Parent as Player;

            parent?.CancelTrade();
        }