using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using ZXK.UTility;
using DG.Tweening;
/*******************************************************************************
*Create By CG
*Function 在UI中的二级工序单项预制体
*******************************************************************************/
namespace ZXK.ZPS
{
public class UISecondItemCtrl : MonoBehaviour
{
[SerializeField]
private Text _nameTxt = null;
[SerializeField]
private Color _selectState = Color.white;
[SerializeField]
private Color _noSelectState = Color.white;
[MyReadOnly]
public bool _IsSecondSelectState = false;
private Transform _secondContainerParent = null;
private Transform _secondSelectContainerParent = null;
private DataItemModel _info = null;
///
///
///
/// 当前二级工序数据模型
/// 界面选中后的二级工序集合地
/// 界面备选区二级工序集合地
public void InitItem(DataItemModel itemInfo,Transform secondProcessParent, Transform secondSelectContainerParent)
{
_info = itemInfo;
_secondContainerParent = secondProcessParent;
_secondSelectContainerParent = secondSelectContainerParent;
transform.name = _nameTxt.text = _info.SecondName.Trim();
SetLight();
GetComponent