private void Start() { var button = GetComponent <Button>(); button.OnClickAsObservable() .Subscribe(_ => BluetoothSystem.Send("Hello World")) .AddTo(this); }
private void Start() { var button = GetComponent <Button>(); Debug.Log(holderManager.IdPhoto); button.OnClickAsObservable() .Subscribe(_ => { BluetoothSystem.Client(); BluetoothSystem.Send(holderManager.IdPhoto.Value); }) .AddTo(this); }
private void Start() { var button = GetComponent <Button>(); button.OnClickAsObservable() .Subscribe(_ => { BluetoothSystem.Client(); BluetoothSystem.Send(holderManager.IdPhoto + "," + Hash.GetHash(PhoneId.GetImei() + holderManager.HolderName + holderManager.TimeStamp)); }) .AddTo(this); }