Ejemplo n.º 1
0
 void Node_Start()
 {
     current_input_node = Instantiate(input_node, pointer_world_location, transform.rotation) as GameObject;
     node_list.Add(current_input_node);
     input_node_script = current_input_node.GetComponent <Input_Node>();
     total_nodes++;
 }
Ejemplo n.º 2
0
 void Node()
 {
     current_input_node  = current_output_node;
     current_output_node = null;
     input_node_script   = current_input_node.GetComponent <Input_Node>();
     total_nodes++;
 }
Ejemplo n.º 3
0
 void Lifted()
 {
     clicked             = false;
     current_output_node = Instantiate(input_node, pointer_world_location, transform.rotation) as GameObject;
     node_list.Add(current_output_node);
     input_node_script.lr.SetPosition(1, current_output_node.transform.position);
     current_input_node = current_output_node;
     input_node_script  = current_input_node.GetComponent <Input_Node>();
     input_node_script.lr.SetPosition(1, current_input_node.transform.position);
     current_input_node  = null;
     current_output_node = null;
     total_nodes++;
 }