public void select_(node_code node) { if (selected_node == node) { deselect_node(); return; } selected_node = node; turrent_to_build = null; ui.Set_target(node); }
public void Set_target(node_code _target) { target = _target; transform.position = target.get_build_position(); if (!target.is_upgaded) { upgade_cost.text = "R" + target.turrent_blue.upgade_cost; upgade_btn.interactable = true; } else { upgade_cost.text = "DONE"; upgade_btn.interactable = false; } ui.SetActive(true); }
public void select(blue_print turrent) { turrent_to_build = turrent; selected_node = null; ui.hide(); }
public void deselect_node() { selected_node = null; ui.hide(); }