Пример #1
0
 public void AddCoin(Coin coin)
 {
     if (coin.Allomancer || parentIronSteel.IsTarget(coin))
     {
         parentIronSteel.RemoveTarget(coin, true, true);
     }
     Destroy(coin.gameObject);
     Count++;
     UpdateUI();
 }
Пример #2
0
 public static void RemoveMagnetic(Magnetic magnetic)
 {
     // Remove from all allomancers
     foreach (Allomancer allomancer in Allomancers)
     {
         AllomanticIronSteel ironSteel = allomancer.GetComponent <AllomanticIronSteel>();
         if (ironSteel)
         {
             ironSteel.RemoveTarget(magnetic);
         }
     }
     MagneticsInScene.Remove(magnetic);
 }