﻿using Lovense.UnityKit.Remote;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class RemoteItemSelect : MonoBehaviour
{
    public LovenseRemoteToy thisToy;
    [SerializeField]
    public Toggle toggle;
    // Start is called before the first frame update
   
    public void SetData(LovenseRemoteToy toy)
    {
        thisToy = toy;
        this.transform.Find("Name").GetComponent<Text>().text = toy.name;
    }

    public LovenseRemoteToy GetData()
    {
        return thisToy;
    }

    public bool IsCheck()
    {
        return toggle.isOn;
    }
}
