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

public class OSXToyCheckItem : MonoBehaviour
{
    [SerializeField]
    public Text text;
    [SerializeField]
    public Toggle toggle;

    private LovenseOSXToy toy;
    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        
    }

    public void SetCheckData(string name,LovenseOSXToy t)
    {
        this.toy = t;
        text.text = name;
    }

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

    public string GetToyId ()
    {
        return this.toy.identifier;
    }


}
