Синтаксис:
Используется csharp
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class Record : MonoBehaviour
{
public Text Records;
private Text comp;
// Start is called before the first frame update
void Start()
{
comp = GetComponent<Text>();
comp.text = PlayerPrefs.GetInt("Record").ToString();
Records.text = "Last hightscore: " + comp.text;
}
}
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class Record : MonoBehaviour
{
public Text Records;
private Text comp;
// Start is called before the first frame update
void Start()
{
comp = GetComponent<Text>();
comp.text = PlayerPrefs.GetInt("Record").ToString();
Records.text = "Last hightscore: " + comp.text;
}
}