52 lines
980 B
C#
52 lines
980 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using TMPro;
|
|
|
|
public class RacingSuccessPanel : BasePanel
|
|
{
|
|
public Button ReturnBtn;
|
|
public static RacingSuccessPanel instance;
|
|
public TextMeshProUGUI textSnailEggs;//蜗牛蛋文本
|
|
public List<Image> images=new List<Image>();//显示蜗牛图片
|
|
public override void Start()
|
|
{
|
|
instance = this;
|
|
base.Start();
|
|
ReturnBtn.onClick.AddListener(OnClickReBtn);
|
|
}
|
|
|
|
public void OnClickReBtn()
|
|
{
|
|
|
|
HidePanel();
|
|
}
|
|
|
|
public void ShowImage()//设置结算展示图片
|
|
{
|
|
if (AllManeger.instance.WinNos.Count==4)
|
|
{
|
|
foreach (Image image in images)
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
public void SetImage(int horseId,Image image)
|
|
{
|
|
switch (horseId)
|
|
{
|
|
case 1:
|
|
break;
|
|
case 2:
|
|
break;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
} |