public void AddCoin(Coin coin) { if (coin.Allomancer || parentIronSteel.IsTarget(coin)) { parentIronSteel.RemoveTarget(coin, true, true); } Destroy(coin.gameObject); Count++; UpdateUI(); }
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); }