43 lines
1020 B
C#
43 lines
1020 B
C#
|
using System.Collections;
|
|||
|
using System.Collections.Generic;
|
|||
|
using Unity.VisualScripting;
|
|||
|
using UnityEngine;
|
|||
|
using UnityEngine.U2D;
|
|||
|
using UnityEngine.UI;
|
|||
|
|
|||
|
public class LevItem1 : MonoBehaviour
|
|||
|
{
|
|||
|
//<2F><>ť<EFBFBD><C5A5><EFBFBD><EFBFBD>
|
|||
|
public Button btnSelf;
|
|||
|
|
|||
|
//<2F><><EFBFBD><EFBFBD>
|
|||
|
public Text txtName;
|
|||
|
//<2F>ؿ<EFBFBD>id
|
|||
|
private int levId;
|
|||
|
|
|||
|
void Start()
|
|||
|
{
|
|||
|
btnSelf.onClick.AddListener(() =>
|
|||
|
{
|
|||
|
//<2F><><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
UIManager.Instance.HidePanel<AllLevPanel>();
|
|||
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>а<EFBFBD><D0B0><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
UIManager.Instance.GetPanel<RankPanel>().UpdatePanel(levId);
|
|||
|
GameDataMgr.Instance.levRankMsg.id = levId;
|
|||
|
StartCoroutine(NetMgr.Instance.RankPost(GameDataMgr.Instance.levRankMsg));
|
|||
|
});
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// <20><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>°<EFBFBD>ť<EFBFBD><C5A5>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>
|
|||
|
/// </summary>
|
|||
|
/// <param name="info"></param>
|
|||
|
public void InitInfo(AllLevData lev)
|
|||
|
{
|
|||
|
//<2F><>¼<EFBFBD>¹ؿ<C2B9>id
|
|||
|
levId = lev.levId;
|
|||
|
//<2F><><EFBFBD>°<EFBFBD>ť<EFBFBD>ϵ<EFBFBD><CFB5><EFBFBD>Ϣ
|
|||
|
txtName.text = levId.ToString();
|
|||
|
}
|
|||
|
}
|