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 OnEnable()
 {
     BluetoothSystem.Server();
     BluetoothSystem.Receive(verifierManager.gameObject.name,
                             ((Action <string>)verifierManager.SetMessage).Method.Name);
 }
Exemplo n.º 3
0
 private void OnEnable()
 {
     BluetoothSystem.Server();
     BluetoothSystem.Receive(issuerManager.gameObject.name,
                             ((Action <string>)issuerManager.SetPhoto).Method.Name);
 }