32 lines
861 B
C#
32 lines
861 B
C#
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class LiveCharacterSelect : MonoBehaviour
|
|
{
|
|
public CharaEntry CharaEntry;
|
|
public string CostumeId;
|
|
public Image CharaImage;
|
|
public Image BackGroundImage;
|
|
public Image CostumeImage;
|
|
public Text IndexText;
|
|
|
|
public void SelectChara(UmaViewerUI ui)
|
|
{
|
|
if (!ui) return;
|
|
ui.CurrentSeletChara = this;
|
|
if (!ui.SelectCharacterPannel.activeInHierarchy)
|
|
ui.ToggleUIPanel(ui.SelectCharacterPannel);
|
|
}
|
|
|
|
public void SetValue(CharaEntry charaentry, string costumeId, Sprite costumeSprite)
|
|
{
|
|
CharaEntry = charaentry;
|
|
CostumeId = costumeId;
|
|
CharaImage.sprite = charaentry.Icon;
|
|
BackGroundImage.enabled = true;
|
|
BackGroundImage.sprite = charaentry.Icon;
|
|
CostumeImage.sprite = costumeSprite;
|
|
}
|
|
}
|
|
|