using System;
using System.Collections;
using System.Linq;
using UnityEngine;
using UnityEngine.UI;
namespace Studio.UVC.UI
{
///
/// On/Off 상태를 나타내는 버튼
///
public class UVCSwitchButton : MonoBehaviour
{
private RectTransform rect;
private Button button_switch;
private RectTransform switch_rect;
private Image image_background;
private bool selected = false;
public bool Selected { get { return selected; } }
[SerializeField]
private float space;
[SerializeField]
private float speed_MoveTo;
[SerializeField]
private float duration_MoveTo;
private float switchBtnSize;
private float bgWidthSize;
private float process;
public Action onClickSwitch;
private float timer;
[Header("BG_Color")]
[SerializeField]
private Color normalBG;
[SerializeField]
private Color SelectBG;
public void Init()
{
rect = GetComponent();
button_switch = GetComponentInChildren