public void startConnection() { SplineDraw lineDrawer = lineCam.GetComponent <SplineDraw>(); PortConnector connect = connectCallObject.GetComponent <PortConnector>(); connect.outputPort = gameObject; lineDrawer.drawMouseTo = gameObject; lineDrawer.drawToMouse = true; }
void Awake() { splineDraw = gameObject.GetComponent <SplineDraw> () as SplineDraw; }