19 lines
417 B
C#
19 lines
417 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using TMPro;
|
|
|
|
public class MainTile : UIController
|
|
{
|
|
[SerializeField] List<TextMeshProUGUI> text;
|
|
// Start is called before the first frame update
|
|
public void init(string name)
|
|
{
|
|
var Str = name.Split(',');
|
|
for (int i = 0; i < Str.Length; i++)
|
|
{
|
|
text[i].text = Str[i];
|
|
}
|
|
}
|
|
}
|