public void dock() { ManagerScript mScript = manager.GetComponent <ManagerScript>(); mScript.In_To_Port(targetPort); current_port = targetPort; }