private void DropDeposit(DepositController trade) { global::RustyCore.Utils.Logger.Info($"DropDeposit {trade.shop.net.ID}"); m_Boxes.Remove(trade.guid); TradeBox.Destroy(trade.guid); UnityEngine.Object.DestroyImmediate(trade); }
void Unloaded() { foreach (var trade in m_Boxes) { TradeBox.Destroy(trade.Key); UnityEngine.Object.Destroy(trade.Value, 0.1f); } }