コード例 #1
0
        private void Start()
        {
            var button = GetComponent <Button>();

            button.OnClickAsObservable()
            .Subscribe(_ => BluetoothSystem.Send("Hello World"))
            .AddTo(this);
        }
コード例 #2
0
        private void Start()
        {
            var button = GetComponent <Button>();

            Debug.Log(holderManager.IdPhoto);

            button.OnClickAsObservable()
            .Subscribe(_ => {
                BluetoothSystem.Client();
                BluetoothSystem.Send(holderManager.IdPhoto.Value);
            })
            .AddTo(this);
        }
コード例 #3
0
        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);
        }