24 lines
654 B
C#
24 lines
654 B
C#
using CSNetwork.Protocols.RPCData;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using BrewMonster;
|
|
|
|
namespace BrewMonster.UI
|
|
{
|
|
public class SelecScreenCharacter : MonoBehaviour
|
|
{
|
|
[SerializeField] private GameObject characterItemPrefab;
|
|
[SerializeField] private RectTransform parentItems;
|
|
|
|
public void InitScreen(List<RoleInfo> roleInfos, Action<RoleInfo> OnClickItemChar)
|
|
{
|
|
foreach(RoleInfo info in roleInfos)
|
|
{
|
|
CharacterItemUI item = Instantiate(characterItemPrefab, parentItems).GetComponent<CharacterItemUI>();
|
|
item.InitItem(info, OnClickItemChar);
|
|
}
|
|
}
|
|
}
|
|
}
|