Exemplo n.º 1
0
    public void select_(node_code node)
    {
        if (selected_node == node)
        {
            deselect_node();
            return;
        }

        selected_node    = node;
        turrent_to_build = null;
        ui.Set_target(node);
    }
Exemplo n.º 2
0
    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);
    }
Exemplo n.º 3
0
 public void select(blue_print turrent)
 {
     turrent_to_build = turrent;
     selected_node    = null;
     ui.hide();
 }
Exemplo n.º 4
0
 public void deselect_node()
 {
     selected_node = null;
     ui.hide();
 }