﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

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

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

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

    public void SetCheckData(string name,string id)
    {
        this.id = id;
        text.text = name;
    }

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

    public string GetToyId ()
    {
        return this.id;
    }


}
