void Sell() { if (turret.name == "Iceturret(Clone)" | turret.name == "UpgradedIceturret(Clone)") { Collider2D[] colliders = Physics2D.OverlapCircleAll(transform.position, turret.GetComponent <Tower>().range); StartCoroutine(Paththaw(colliders)); } NetPlayer.Cmdsell(turret.GetComponent <NetworkIdentity>().netId, gameObject.GetComponent <NetworkIdentity>().netId); Player.Money += turretBlueprint.Sell(); }