System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.SceneManagement; public class AchievementsMenu : MonoBehaviour { public int TotalMoney; [SerializeField] bool isFirst; public Text completeText; void Start() { TotalMoney = PlayerPrefs.GetInt("TotalMoney"); if (TotalMoney >= 1) { Complete.Text = "Complete!"; Complete.Color = "0, 255, 0"; } else { Complete.Text = "X"; Complete.Color = "255, 0, 0"; } } public void Back() { SceneManager.LoadScene(0); } // Update is called once per frame void Update() { } }
И оно работало и появлялось в компонентах
Для справки: я скачал юнити вчера