Exemplo n.º 1
0
 private void Start()
 {
     ComputeButton.OnClickAsObservable()
     .Select(_ => new Vector3(float.Parse(XInput.text),
                              float.Parse(YInput.text),
                              float.Parse(ZInput.text)))
     .Subscribe(v => InvokeComputePressed(this, new Simple3PlaneClusterization(v)));
 }
 private void Start()
 {
     ComputeButton.OnClickAsObservable()
     .Select(_ => int.Parse(KInput.text))
     .Subscribe(k => InvokeComputePressed(this, new KMeansClusterization(k)));
 }
 private void Start()
 {
     ComputeButton.OnClickAsObservable()
     .Subscribe(k => InvokeComputePressed(this, CreateAlgorithm()));
 }