示例#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);
 }