private void Start() { var button = GetComponent <Button>(); button.OnClickAsObservable() .Subscribe(_ => BluetoothSystem.Send("Hello World")) .AddTo(this); }
private void Start() { var button = GetComponent <Button>(); var gameObjectName = displayReceiveText.gameObject.name; var methodName = ((Action <string>)displayReceiveText.DisplayText).Method.Name; button.OnClickAsObservable() .Subscribe(_ => BluetoothSystem.Receive(gameObjectName, methodName)) .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); }
private void Start() { var dropdown = GetComponent <Dropdown>(); var devices = new List <string>() { "選択してください" }; devices.AddRange(BluetoothSystem.GetDevices()); dropdown.ClearOptions(); dropdown.AddOptions(devices); dropdown.RefreshShownValue(); dropdown.OnValueChangedAsObservable() .Subscribe(x => BluetoothSystem.Device = devices[x]) .AddTo(this); }
private void OnEnable() { BluetoothSystem.Server(); BluetoothSystem.Receive(verifierManager.gameObject.name, ((Action <string>)verifierManager.SetMessage).Method.Name); }
private void OnEnable() { BluetoothSystem.Server(); BluetoothSystem.Receive(issuerManager.gameObject.name, ((Action <string>)issuerManager.SetPhoto).Method.Name); }