private void OnTriggerEnter(Collider other) { if (other.tag == "Wire") { onWires = true; } if (other.tag == "Coin") { saveManager.AddCoins(1); } }