public void Rename() { if (transition_time < 0) { if (left_title.text == Interpreter.Jump_Label_Text) { ship.SetOperand(selected, right_input.text); SwitchLeftView(Syntax); return; } if (left_title.text == Interpreter.Set_Text) { ship.SetOperand(selected, Interpreter.Set + " " + right_input.text); return; } GameObject.Find(selected).name = right_input.text; selected = right_input.text; ship.Start(); Select(selected); // Will want to update scripts that contain old component references with new component references... TODO } }