25 lines
577 B
C#
25 lines
577 B
C#
using UnityEngine;
|
|
using System.Collections;
|
|
using UnityEngine.UI;
|
|
using System.Collections.Generic;
|
|
|
|
public class WeekItem : MonoBehaviour {
|
|
|
|
public int week; //0 - 6 0代表周日
|
|
public Image m_SelectedBG;
|
|
public Image bgImage;
|
|
public Transform parentTrans;
|
|
|
|
public Sprite _highLightBG;
|
|
public Sprite _darkBG;
|
|
|
|
public void ShowBG(bool isLight)
|
|
{
|
|
m_SelectedBG.gameObject.SetActive(isLight);
|
|
if (isLight)
|
|
bgImage.overrideSprite = _highLightBG;
|
|
else
|
|
bgImage.overrideSprite = _darkBG;
|
|
}
|
|
}
|