private void OnMouseDown() { if (turret != null) { alert.setText("Tady už tureta je."); } else if (economy.CanBuild()) { turret = Instantiate(turretModel, transform.position + new Vector3(0, 0.5f, 0), transform.rotation); } else { alert.setText("Nemáš dostatek peněz"); } }