private void TowerPurchaseConfirm() { // Return if it's on the path. if (!selectedTd.validPosition) { return; } AudioHandler.ClickSound(); //Debug.Log(selectedTowerForPurchase.GetGameobject().name); selectedTowerForPurchase.ShowRangeCircle(false); selectedTowerForPurchase.SetEnabled(true); selectedTowerForPurchase.LockMovement(); selectedCp.enabled = true; // Remove the cost from the health (needs to be down here) healthFlag = true; Player.health -= selectedTowerForPurchase.MyInfo().cost; healthFlag = false; HideBuyOptions(); }