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