ZoeAppClass/Assets/Scripts/Class/Start/StartControl.cs

16 lines
400 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class StartControl : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
Text[] txts = GetComponentsInChildren<Text>();
txts[0].text = PlayerPrefs.GetString("NomeAula");
txts[1].text = PlayerPrefs.GetString("Desc");
}
}