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

public class WinbleToySelect : MonoBehaviour
{
    public string id;
    public string thisName;
    // Start is called before the first frame update
    void Start()
    {
        
    }

    public void SetData(string name,string id)
    {
        this.thisName = name;
        this.id = id;
        this.transform.Find("Name").GetComponent<Text>().text = this.thisName;
    }

    public bool IsOn()
    {
        return this.transform.Find("Toggle").GetComponent<Toggle>().isOn;
    }

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

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