22 lines
585 B
C#
22 lines
585 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using Kill.Bluetooth;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
namespace Kill.UI.Components
|
|
{
|
|
public class DeviceUI : MonoBehaviour
|
|
{
|
|
public Text deviceNameText;
|
|
public Text deviceAddressText;
|
|
public Text deviceRssiText;
|
|
public void Init(BluetoothDevice bluetoothDevice)
|
|
{
|
|
deviceNameText.text = bluetoothDevice.Name;
|
|
deviceAddressText.text = bluetoothDevice.Address;
|
|
deviceRssiText.text = bluetoothDevice.Rssi.ToString();
|
|
}
|
|
}
|
|
}
|