コード例 #1
0
 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);
 }
コード例 #2
0
 void Unloaded()
 {
     foreach (var trade in m_Boxes)
     {
         TradeBox.Destroy(trade.Key);
         UnityEngine.Object.Destroy(trade.Value, 0.1f);
     }
 }